Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Sources_Examples_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_DC_Sources_Examples_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 195.5 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0025/0.0025, allocations: 279 kB / 290.7 MB, free: 2.031 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.082/1.082, allocations: 178.6 MB / 0.5073 GB, free: 4.613 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002696/0.002696, allocations: 97.97 kB / 0.6065 GB, free: 24.66 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1591/0.1618, allocations: 89.15 MB / 0.6936 GB, free: 4.246 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.005192/0.1671, allocations: 3.205 MB / 0.6967 GB, free: 1.035 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002322/0.1694, allocations: 1.362 MB / 0.6981 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000135/0.1696, allocations: 7.938 kB / 0.6981 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001045/0.1706, allocations: 333.8 kB / 0.6984 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003563/0.171, allocations: 152.9 kB / 0.6985 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000388/0.1714, allocations: 152.3 kB / 0.6987 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003686/0.1718, allocations: 322.9 kB / 0.699 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004495/0.1722, allocations: 255.6 kB / 0.6992 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001972/0.1725, allocations: 139.5 kB / 0.6994 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002831/0.1728, allocations: 143.5 kB / 0.6995 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 3.947e-05/0.1728, allocations: 20 kB / 0.6995 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003307/0.1731, allocations: 171.6 kB / 0.6997 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.972e-05/0.1733, allocations: 83.73 kB / 0.6998 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001356/0.1734, allocations: 123.5 kB / 0.6999 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004611/0.1739, allocations: 354.9 kB / 0.7002 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1739, allocations: 4 kB / 0.7002 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.402e-06/0.1739, allocations: 0 / 0.7002 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.011e-05/0.1739, allocations: 0 / 0.7002 GB, free: 13.46 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.000946/0.1749, allocations: 0.5439 MB / 0.7008 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.1749, allocations: 12.03 kB / 0.7008 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.513e-05/0.175, allocations: 54.73 kB / 0.7008 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005987/0.1756, allocations: 80.58 kB / 0.7009 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003234/0.1759, allocations: 252.5 kB / 0.7011 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.176, allocations: 12.81 kB / 0.7011 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.166e-05/0.176, allocations: 28.38 kB / 0.7012 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005293/0.1765, allocations: 312.5 kB / 0.7015 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.1766, allocations: 3.938 kB / 0.7015 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.811e-05/0.1766, allocations: 8 kB / 0.7015 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.575e-05/0.1766, allocations: 20.42 kB / 0.7015 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004125/0.1771, allocations: 213.6 kB / 0.7017 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001728/0.1788, allocations: 1.498 MB / 0.7032 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004525/0.1793, allocations: 203.6 kB / 0.7034 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.1794, allocations: 48.83 kB / 0.7034 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.351e-05/0.1794, allocations: 4 kB / 0.7034 GB, free: 9.875 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.072e-05/0.1795, allocations: 42.62 kB / 0.7035 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=8): time 1.542e-06/0.1795, allocations: 0 / 0.7035 GB, free: 9.824 MB / 0.4981 GB Notification: Performance of matching and sorting (n=8): time 0.0005984/0.1801, allocations: 251.4 kB / 0.7037 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.786e-05/0.1801, allocations: 59.34 kB / 0.7037 GB, free: 9.48 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002068/0.1803, allocations: 207.8 kB / 0.7039 GB, free: 9.27 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.958e-05/0.1804, allocations: 25.7 kB / 0.704 GB, free: 9.238 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.1805, allocations: 187.5 kB / 0.7041 GB, free: 9.051 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.6e-05/0.1805, allocations: 27.64 kB / 0.7042 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.7e-05/0.1806, allocations: 37.61 kB / 0.7042 GB, free: 8.98 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001443/0.1808, allocations: 326.8 kB / 0.7045 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001056/0.1809, allocations: 47.91 kB / 0.7046 GB, free: 8.605 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001504/0.181, allocations: 108.5 kB / 0.7047 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000258/0.1813, allocations: 168.4 kB / 0.7048 GB, free: 8.273 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.1813, allocations: 4 kB / 0.7048 GB, free: 8.27 MB / 0.4981 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004025/0.1817, allocations: 214.1 kB / 0.705 GB, free: 8.051 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.1818, allocations: 8 kB / 0.705 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.1818, allocations: 0 / 0.705 GB, free: 8.043 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001693/0.1819, allocations: 33.06 kB / 0.7051 GB, free: 8.008 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001371/0.1821, allocations: 35.97 kB / 0.7051 GB, free: 7.973 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001263/0.1834, allocations: 1.421 MB / 0.7065 GB, free: 6.41 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001523/0.1835, allocations: 23.83 kB / 0.7065 GB, free: 6.387 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.292e-05/0.1836, allocations: 7.938 kB / 0.7065 GB, free: 6.379 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001511/0.1837, allocations: 148.4 kB / 0.7067 GB, free: 6.227 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.566e-05/0.1838, allocations: 15.81 kB / 0.7067 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.533e-05/0.1838, allocations: 25.45 kB / 0.7067 GB, free: 6.188 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.1838, allocations: 4 kB / 0.7067 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1838, allocations: 0 / 0.7067 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.1838, allocations: 0 / 0.7067 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006651/0.1845, allocations: 495 kB / 0.7072 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.1845, allocations: 0 / 0.7072 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.702e-05/0.1846, allocations: 11.98 kB / 0.7072 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.757e-05/0.1847, allocations: 28.84 kB / 0.7072 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.1847, allocations: 0 / 0.7072 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001133/0.1858, allocations: 1.421 MB / 0.7086 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1858, allocations: 0 / 0.7086 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003146/0.1862, allocations: 240.1 kB / 0.7088 GB, free: 3.785 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 9.192e-05/0.1863, allocations: 105 kB / 0.7089 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.144e-05/0.1863, allocations: 0 / 0.7089 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001248/0.1864, allocations: 4 kB / 0.7089 GB, free: 3.66 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.103e-05/0.1865, allocations: 11.97 kB / 0.709 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.028e-05/0.1865, allocations: 4 kB / 0.709 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000135/0.1866, allocations: 152.1 kB / 0.7091 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1866, allocations: 0 / 0.7091 GB, free: 3.496 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003534/0.187, allocations: 59.75 kB / 0.7092 GB, free: 3.438 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006295/0.1876, allocations: 0.7686 MB / 0.7099 GB, free: 2.637 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0004581/0.1881, allocations: 238.6 kB / 0.7101 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.1881, allocations: 4.219 kB / 0.7101 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002293/0.1884, allocations: 166.6 kB / 0.7103 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003779/0.1887, allocations: 40.62 kB / 0.7103 GB, free: 2.172 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002546/0.1913, allocations: 2.147 MB / 0.7124 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.1917, allocations: 0.7554 MB / 0.7132 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001143/0.1918, allocations: 29.53 kB / 0.7132 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.79e-05/0.1919, allocations: 59.36 kB / 0.7133 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of SimCode: time 3.5e-07/0.1919, allocations: 0 / 0.7133 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02822/0.2201, allocations: 3.964 MB / 0.7171 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.465/9.685, allocations: 6.5 kB / 0.7171 GB, free: 11.2 MB / 0.5137 GB (rm -f BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Electrical_DC_Sources_Examples_VoltageSource.fmu > BuildingSystems_BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1)