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.00733/0.00733, allocations: 96.31 kB / 15.73 MB, free: 6.043 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.0017/0.0017, allocations: 193.9 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002283/0.002283, allocations: 290.4 kB / 290.8 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9804/0.9804, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00178/0.00178, allocations: 95.84 kB / 0.6809 GB, free: 4 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1562, allocations: 86.98 MB / 0.7659 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.DC.Sources.Examples.VoltageSource): time 0.004445/0.1607, allocations: 3.199 MB / 0.769 GB, free: 5.734 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002185/0.1629, allocations: 1.367 MB / 0.7703 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002081/0.1631, allocations: 8 kB / 0.7704 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001093/0.1642, allocations: 332.9 kB / 0.7707 GB, free: 4.027 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0004354/0.1647, allocations: 147.2 kB / 0.7708 GB, free: 3.883 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004153/0.1651, allocations: 155.6 kB / 0.771 GB, free: 3.73 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0003773/0.1655, allocations: 334.5 kB / 0.7713 GB, free: 3.402 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004351/0.1659, allocations: 259.6 kB / 0.7715 GB, free: 3.145 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000216/0.1662, allocations: 143.5 kB / 0.7717 GB, free: 3.004 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000291/0.1665, allocations: 147.4 kB / 0.7718 GB, free: 2.859 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 3.91e-05/0.1665, allocations: 20 kB / 0.7718 GB, free: 2.84 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003339/0.1669, allocations: 167.6 kB / 0.772 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.934e-05/0.167, allocations: 83.73 kB / 0.7721 GB, free: 2.594 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001411/0.1671, allocations: 127.4 kB / 0.7722 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0005282/0.1676, allocations: 366.6 kB / 0.7725 GB, free: 2.109 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1677, allocations: 0 / 0.7725 GB, free: 2.109 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.362e-06/0.1677, allocations: 0 / 0.7725 GB, free: 2.109 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.646e-06/0.1677, allocations: 0 / 0.7725 GB, free: 2.109 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.0009245/0.1686, allocations: 0.5415 MB / 0.7731 GB, free: 1.52 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.1687, allocations: 12.03 kB / 0.7731 GB, free: 1.508 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.703e-05/0.1687, allocations: 62.72 kB / 0.7731 GB, free: 1.438 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005841/0.1693, allocations: 84.72 kB / 0.7732 GB, free: 1.355 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003081/0.1696, allocations: 255 kB / 0.7735 GB, free: 1.07 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.504e-05/0.1697, allocations: 16.75 kB / 0.7735 GB, free: 1.055 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.237e-05/0.1697, allocations: 20.38 kB / 0.7735 GB, free: 1.035 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004776/0.1702, allocations: 316.5 kB / 0.7738 GB, free: 0.7031 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.1702, allocations: 0 / 0.7738 GB, free: 0.7031 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.753e-05/0.1702, allocations: 8 kB / 0.7738 GB, free: 0.6953 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.688e-05/0.1703, allocations: 24.36 kB / 0.7738 GB, free: 0.6719 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003623/0.1706, allocations: 209.6 kB / 0.774 GB, free: 476 kB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2898/0.4605, allocations: 1.489 MB / 0.7755 GB, free: 13.91 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004097/0.4609, allocations: 201.5 kB / 0.7757 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.656e-05/0.461, allocations: 47.33 kB / 0.7757 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.388e-05/0.461, allocations: 1.281 kB / 0.7757 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.371e-05/0.461, allocations: 37.67 kB / 0.7758 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 3.046e-06/0.4611, allocations: 2.125 kB / 0.7758 GB, free: 13.75 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.0005584/0.4616, allocations: 263.3 kB / 0.776 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.132e-05/0.4617, allocations: 55.81 kB / 0.7761 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000189/0.4618, allocations: 205 kB / 0.7763 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.383e-05/0.4619, allocations: 27.33 kB / 0.7763 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.87e-05/0.462, allocations: 180.8 kB / 0.7765 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.172e-05/0.462, allocations: 30.84 kB / 0.7765 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.997e-05/0.462, allocations: 41.42 kB / 0.7765 GB, free: 13.26 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.567e-05/0.4621, allocations: 327.8 kB / 0.7768 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.4622, allocations: 45.45 kB / 0.7769 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001156/0.4623, allocations: 111.2 kB / 0.777 GB, free: 12.87 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002004/0.4625, allocations: 168.3 kB / 0.7771 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.4625, allocations: 0 / 0.7771 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000361/0.4629, allocations: 219.1 kB / 0.7774 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.4629, allocations: 5.969 kB / 0.7774 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.4629, allocations: 5.672 kB / 0.7774 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001497/0.4631, allocations: 26.44 kB / 0.7774 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.4632, allocations: 33.67 kB / 0.7774 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007437/0.464, allocations: 1.429 MB / 0.7788 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001361/0.4641, allocations: 24.2 kB / 0.7788 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.469e-05/0.4642, allocations: 15.28 kB / 0.7789 GB, free: 11.35 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 9.582e-05/0.4643, allocations: 148.1 kB / 0.779 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.958e-05/0.4643, allocations: 15.91 kB / 0.779 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.214e-05/0.4644, allocations: 25.73 kB / 0.779 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.4644, allocations: 1.734 kB / 0.779 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.4644, allocations: 0.5 kB / 0.779 GB, free: 11.22 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.4644, allocations: 5.781 kB / 0.779 GB, free: 11.21 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005212/0.4649, allocations: 482.7 kB / 0.7795 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.4649, allocations: 4.312 kB / 0.7795 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.51e-05/0.465, allocations: 15.39 kB / 0.7795 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.607e-05/0.4651, allocations: 26.5 kB / 0.7796 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.4651, allocations: 3.562 kB / 0.7796 GB, free: 10.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000659/0.4658, allocations: 1.427 MB / 0.7809 GB, free: 9.535 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4658, allocations: 0 / 0.7809 GB, free: 9.535 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002507/0.466, allocations: 237.8 kB / 0.7812 GB, free: 9.355 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.354e-05/0.4661, allocations: 99.98 kB / 0.7813 GB, free: 9.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.101e-05/0.4661, allocations: 0.8438 kB / 0.7813 GB, free: 9.25 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001244/0.4662, allocations: 11.89 kB / 0.7813 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.066e-05/0.4663, allocations: 6.203 kB / 0.7813 GB, free: 9.246 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.397e-06/0.4663, allocations: 5.938 kB / 0.7813 GB, free: 9.242 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001079/0.4664, allocations: 152.2 kB / 0.7814 GB, free: 9.145 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4664, allocations: 1.125 kB / 0.7814 GB, free: 9.145 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000339/0.4668, allocations: 56.75 kB / 0.7815 GB, free: 9.137 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.000397/0.4672, allocations: 0.7763 MB / 0.7823 GB, free: 8.426 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003928/0.4676, allocations: 226.4 kB / 0.7825 GB, free: 8.285 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.4676, allocations: 0 / 0.7825 GB, free: 8.285 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001803/0.4678, allocations: 161.6 kB / 0.7826 GB, free: 8.16 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003551/0.4681, allocations: 39.33 kB / 0.7827 GB, free: 8.148 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002025/0.4702, allocations: 2.151 MB / 0.7848 GB, free: 6.48 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001947/0.4704, allocations: 0.7575 MB / 0.7855 GB, free: 5.773 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001061/0.4705, allocations: 29.53 kB / 0.7855 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.659e-05/0.4706, allocations: 60.67 kB / 0.7856 GB, free: 5.727 MB / 0.5606 GB Notification: Performance of SimCode: time 3.7e-07/0.4706, allocations: 0 / 0.7856 GB, free: 5.727 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02111/0.4917, allocations: 4.03 MB / 0.7895 GB, free: 5.219 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.013/9.505, allocations: 5.625 kB / 0.7895 GB, free: 5.215 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)