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.006476/0.006476, allocations: 97.19 kB / 15.73 MB, free: 6.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 193.2 kB / 16.67 MB, free: 5.969 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.44/1.44, allocations: 222.9 MB / 240.4 MB, free: 4.16 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002724/0.002724, allocations: 290.5 kB / 290.8 MB, free: 1.77 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.029/1.029, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002766/0.002766, allocations: 95.86 kB / 0.6809 GB, free: 32 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1661/0.1689, allocations: 86.97 MB / 0.7659 GB, free: 8.98 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.00514/0.1741, allocations: 3.204 MB / 0.769 GB, free: 5.762 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002241/0.1763, allocations: 1.367 MB / 0.7703 GB, free: 4.387 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001441/0.1765, allocations: 8 kB / 0.7704 GB, free: 4.379 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001085/0.1776, allocations: 334.7 kB / 0.7707 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0003735/0.178, allocations: 151.2 kB / 0.7708 GB, free: 3.902 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004022/0.1784, allocations: 154.6 kB / 0.771 GB, free: 3.754 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004143/0.1788, allocations: 334.5 kB / 0.7713 GB, free: 3.426 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004651/0.1793, allocations: 259.6 kB / 0.7715 GB, free: 3.168 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002065/0.1795, allocations: 135.5 kB / 0.7717 GB, free: 3.035 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003145/0.1798, allocations: 151.4 kB / 0.7718 GB, free: 2.887 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.678e-05/0.1799, allocations: 20 kB / 0.7718 GB, free: 2.867 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004002/0.1803, allocations: 175.6 kB / 0.772 GB, free: 2.695 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.893e-05/0.1804, allocations: 79.8 kB / 0.7721 GB, free: 2.617 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001429/0.1805, allocations: 127.4 kB / 0.7722 GB, free: 2.492 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0005176/0.1811, allocations: 358.7 kB / 0.7725 GB, free: 2.141 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1811, allocations: 3.938 kB / 0.7725 GB, free: 2.137 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.663e-06/0.1811, allocations: 0 / 0.7725 GB, free: 2.137 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.853e-06/0.1811, allocations: 0 / 0.7725 GB, free: 2.137 MB / 0.5606 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.0009853/0.1821, allocations: 0.5492 MB / 0.7731 GB, free: 1.539 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.1821, allocations: 8.031 kB / 0.7731 GB, free: 1.531 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.598e-05/0.1822, allocations: 62.72 kB / 0.7731 GB, free: 1.461 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005801/0.1828, allocations: 80.72 kB / 0.7732 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003568/0.1832, allocations: 255.5 kB / 0.7735 GB, free: 1.098 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.02e-05/0.1832, allocations: 12.81 kB / 0.7735 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.889e-05/0.1832, allocations: 24.36 kB / 0.7735 GB, free: 1.062 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005392/0.1838, allocations: 320.4 kB / 0.7738 GB, free: 0.7266 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.1838, allocations: 0 / 0.7738 GB, free: 0.7266 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.511e-05/0.1838, allocations: 4 kB / 0.7738 GB, free: 0.7227 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.459e-05/0.1839, allocations: 20.44 kB / 0.7738 GB, free: 0.7031 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000382/0.1843, allocations: 217.5 kB / 0.774 GB, free: 500 kB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.294/0.4783, allocations: 1.485 MB / 0.7755 GB, free: 13.97 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004422/0.4788, allocations: 207.3 kB / 0.7757 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.4789, allocations: 45.58 kB / 0.7757 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/0.479, allocations: 0.5938 kB / 0.7757 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.509e-05/0.479, allocations: 32.67 kB / 0.7758 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 2.184e-06/0.479, allocations: 1.562 kB / 0.7758 GB, free: 13.81 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.0005546/0.4796, allocations: 266.1 kB / 0.776 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.064e-05/0.4796, allocations: 58.98 kB / 0.7761 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001882/0.4798, allocations: 203.8 kB / 0.7763 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.202e-05/0.4798, allocations: 27.27 kB / 0.7763 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.375e-05/0.4799, allocations: 180.2 kB / 0.7765 GB, free: 13.35 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.974e-05/0.4799, allocations: 28.67 kB / 0.7765 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.014e-05/0.48, allocations: 38.81 kB / 0.7765 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.747e-05/0.48, allocations: 326.8 kB / 0.7768 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.743e-05/0.4801, allocations: 43.75 kB / 0.7769 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001116/0.4802, allocations: 110 kB / 0.777 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002002/0.4805, allocations: 167.6 kB / 0.7771 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4805, allocations: 0 / 0.7771 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003773/0.4808, allocations: 222.5 kB / 0.7773 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.4809, allocations: 7.75 kB / 0.7774 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.4809, allocations: 4.234 kB / 0.7774 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001636/0.4811, allocations: 27.14 kB / 0.7774 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.4812, allocations: 32.2 kB / 0.7774 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007912/0.482, allocations: 1.432 MB / 0.7788 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001447/0.4822, allocations: 23.42 kB / 0.7788 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.694e-05/0.4822, allocations: 12.98 kB / 0.7789 GB, free: 11.41 MB / 0.5606 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.0001071/0.4823, allocations: 142.3 kB / 0.779 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.886e-05/0.4823, allocations: 16.19 kB / 0.779 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.239e-05/0.4824, allocations: 23.23 kB / 0.779 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.4824, allocations: 4.906 kB / 0.779 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/0.4824, allocations: 4.516 kB / 0.779 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.4824, allocations: 3.938 kB / 0.779 GB, free: 11.28 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005455/0.483, allocations: 479.6 kB / 0.7795 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.483, allocations: 1.438 kB / 0.7795 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.564e-05/0.483, allocations: 19.38 kB / 0.7795 GB, free: 10.97 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.907e-05/0.4831, allocations: 30.03 kB / 0.7795 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.307e-06/0.4831, allocations: 1.562 kB / 0.7795 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006558/0.4838, allocations: 1.425 MB / 0.7809 GB, free: 9.598 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.4838, allocations: 1.062 kB / 0.7809 GB, free: 9.598 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002512/0.4841, allocations: 235.4 kB / 0.7812 GB, free: 9.422 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.405e-05/0.4841, allocations: 102.6 kB / 0.7813 GB, free: 9.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.068e-05/0.4842, allocations: 1.969 kB / 0.7813 GB, free: 9.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.4843, allocations: 14.42 kB / 0.7813 GB, free: 9.312 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.949e-05/0.4843, allocations: 6.469 kB / 0.7813 GB, free: 9.312 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.656e-06/0.4844, allocations: 6.062 kB / 0.7813 GB, free: 9.309 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001118/0.4845, allocations: 156.4 kB / 0.7814 GB, free: 9.207 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4845, allocations: 0 / 0.7814 GB, free: 9.207 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003447/0.4848, allocations: 56.25 kB / 0.7815 GB, free: 9.199 MB / 0.5606 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.0003899/0.4852, allocations: 0.7714 MB / 0.7822 GB, free: 8.492 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003908/0.4856, allocations: 228.1 kB / 0.7825 GB, free: 8.352 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4856, allocations: 0 / 0.7825 GB, free: 8.352 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001777/0.4858, allocations: 166.6 kB / 0.7826 GB, free: 8.223 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003497/0.4862, allocations: 42.52 kB / 0.7827 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001946/0.4881, allocations: 2.145 MB / 0.7848 GB, free: 6.547 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001773/0.4883, allocations: 0.7569 MB / 0.7855 GB, free: 5.84 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001007/0.4884, allocations: 30.28 kB / 0.7855 GB, free: 5.836 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.608e-05/0.4885, allocations: 60.12 kB / 0.7856 GB, free: 5.793 MB / 0.5606 GB Notification: Performance of SimCode: time 3.41e-07/0.4885, allocations: 1.156 kB / 0.7856 GB, free: 5.793 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02816/0.5167, allocations: 4.034 MB / 0.7895 GB, free: 5.281 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.559/10.08, allocations: 3.188 kB / 0.7895 GB, free: 5.281 MB / 0.5606 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)