Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.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.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_Utilities_Examples_TestVoltageCTRL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_Utilities_Examples_TestVoltageCTRL",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.007055/0.007055, allocations: 97.36 kB / 15.73 MB, free: 6.039 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.001378/0.001378, allocations: 202.1 kB / 16.68 MB, free: 5.961 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.461/1.461, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002663/0.002663, allocations: 278.8 kB / 290.8 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.036/1.036, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003008/0.003008, allocations: 99.78 kB / 0.6809 GB, free: 28 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.1706, allocations: 86.97 MB / 0.7659 GB, free: 8.98 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004051/0.1747, allocations: 2.304 MB / 0.7681 GB, free: 6.664 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001452/0.1762, allocations: 0.7793 MB / 0.7689 GB, free: 5.879 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001357/0.1763, allocations: 4 kB / 0.7689 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006694/0.177, allocations: 147.4 kB / 0.769 GB, free: 5.73 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002433/0.1773, allocations: 63.59 kB / 0.7691 GB, free: 5.668 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.000201/0.1775, allocations: 55.88 kB / 0.7691 GB, free: 5.613 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002665/0.1778, allocations: 151.5 kB / 0.7693 GB, free: 5.465 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002784/0.178, allocations: 105 kB / 0.7694 GB, free: 5.363 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001489/0.1782, allocations: 71.77 kB / 0.7695 GB, free: 5.293 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000183/0.1784, allocations: 79.61 kB / 0.7695 GB, free: 5.215 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.932e-05/0.1784, allocations: 8 kB / 0.7695 GB, free: 5.207 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001313/0.1786, allocations: 51.84 kB / 0.7696 GB, free: 5.156 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.443e-05/0.1786, allocations: 35.91 kB / 0.7696 GB, free: 5.121 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 9.701e-05/0.1788, allocations: 75.64 kB / 0.7697 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002951/0.1791, allocations: 159.4 kB / 0.7698 GB, free: 4.891 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.1791, allocations: 3.984 kB / 0.7698 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.553e-06/0.1791, allocations: 0 / 0.7698 GB, free: 4.887 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.642e-06/0.1791, allocations: 0 / 0.7698 GB, free: 4.887 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008405/0.1799, allocations: 0.4906 MB / 0.7703 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.18, allocations: 12.03 kB / 0.7703 GB, free: 4.324 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.065e-05/0.18, allocations: 38.75 kB / 0.7704 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000221/0.1803, allocations: 24.83 kB / 0.7704 GB, free: 4.254 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002975/0.1806, allocations: 220.1 kB / 0.7706 GB, free: 4 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.993e-05/0.1806, allocations: 38.44 kB / 0.7706 GB, free: 3.957 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.26e-05/0.1807, allocations: 11.94 kB / 0.7707 GB, free: 3.945 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003348/0.181, allocations: 150.2 kB / 0.7708 GB, free: 3.785 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.274e-05/0.1811, allocations: 3.938 kB / 0.7708 GB, free: 3.781 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.703e-05/0.1811, allocations: 8 kB / 0.7708 GB, free: 3.773 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.757e-05/0.1811, allocations: 4 kB / 0.7708 GB, free: 3.77 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002196/0.1813, allocations: 87.88 kB / 0.7709 GB, free: 3.684 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009696/0.1823, allocations: 0.6442 MB / 0.7715 GB, free: 2.977 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000235/0.1826, allocations: 58.61 kB / 0.7716 GB, free: 2.91 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.284e-05/0.1827, allocations: 28.84 kB / 0.7716 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.217e-05/0.1827, allocations: 0 / 0.7716 GB, free: 2.879 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002148/0.1829, allocations: 142.9 kB / 0.7718 GB, free: 2.715 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.1829, allocations: 0 / 0.7718 GB, free: 2.715 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7): time 0.0004011/0.1833, allocations: 175.1 kB / 0.7719 GB, free: 2.531 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.001e-05/0.1834, allocations: 128.5 kB / 0.772 GB, free: 2.375 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001923/0.1836, allocations: 187.1 kB / 0.7722 GB, free: 2.18 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.843e-05/0.1837, allocations: 29.7 kB / 0.7722 GB, free: 2.145 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.1838, allocations: 144 kB / 0.7724 GB, free: 1.996 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.945e-05/0.1838, allocations: 23.8 kB / 0.7724 GB, free: 1.973 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.353e-05/0.1839, allocations: 41.7 kB / 0.7724 GB, free: 1.926 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001437/0.184, allocations: 318.8 kB / 0.7728 GB, free: 1.605 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.1842, allocations: 43.97 kB / 0.7728 GB, free: 1.562 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001481/0.1843, allocations: 111.6 kB / 0.7729 GB, free: 1.422 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002844/0.1846, allocations: 230.3 kB / 0.7731 GB, free: 1.145 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1846, allocations: 0 / 0.7731 GB, free: 1.145 MB / 0.5606 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003989/0.185, allocations: 244.7 kB / 0.7734 GB, free: 0.8867 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.594e-05/0.1851, allocations: 67.34 kB / 0.7734 GB, free: 0.8086 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.1851, allocations: 3.984 kB / 0.7734 GB, free: 0.8047 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.1851, allocations: 4 kB / 0.7734 GB, free: 0.8008 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001243/0.1853, allocations: 31.92 kB / 0.7735 GB, free: 0.7695 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.398e-05/0.1853, allocations: 4 kB / 0.7735 GB, free: 0.7656 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001611/0.1854, allocations: 28.2 kB / 0.7735 GB, free: 0.7383 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.591e-05/0.1855, allocations: 7.984 kB / 0.7735 GB, free: 0.7305 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 (voltageControl.ctrl.tSwitch,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.connected,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001412/0.1856, allocations: 162.6 kB / 0.7736 GB, free: 0.5586 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.324e-05/0.1857, allocations: 23.83 kB / 0.7737 GB, free: 0.5352 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.727e-05/0.1857, allocations: 13.41 kB / 0.7737 GB, free: 0.5195 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.1857, allocations: 3.938 kB / 0.7737 GB, free: 0.5156 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.1857, allocations: 0 / 0.7737 GB, free: 0.5156 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.1857, allocations: 0 / 0.7737 GB, free: 0.5156 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002046/0.1859, allocations: 221.5 kB / 0.7739 GB, free: 256 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1859, allocations: 8 kB / 0.7739 GB, free: 248 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.593e-05/0.186, allocations: 15.98 kB / 0.7739 GB, free: 232 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.186, allocations: 3.938 kB / 0.7739 GB, free: 228 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/0.1861, allocations: 0 / 0.7739 GB, free: 228 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1861, allocations: 0 / 0.7739 GB, free: 228 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1861, allocations: 0 / 0.7739 GB, free: 228 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.292/0.4781, allocations: 212.6 kB / 0.7741 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.506e-05/0.4782, allocations: 90.58 kB / 0.7742 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.365e-05/0.4782, allocations: 6.625 kB / 0.7742 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.4783, allocations: 11.61 kB / 0.7742 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.385e-05/0.4784, allocations: 9.875 kB / 0.7742 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.167e-05/0.4784, allocations: 2.578 kB / 0.7742 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000115/0.4785, allocations: 134.4 kB / 0.7744 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.9e-07/0.4785, allocations: 1.406 kB / 0.7744 GB, free: 14.82 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003734/0.4789, allocations: 34.94 kB / 0.7744 GB, free: 14.82 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005877/0.4795, allocations: 0.7526 MB / 0.7751 GB, free: 14.2 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003294/0.4799, allocations: 214.8 kB / 0.7753 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4799, allocations: 0 / 0.7753 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001269/0.48, allocations: 105.8 kB / 0.7754 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002939/0.4803, allocations: 19.34 kB / 0.7755 GB, free: 14.01 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002008/0.4823, allocations: 1.964 MB / 0.7774 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001398/0.4825, allocations: 0.7124 MB / 0.7781 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.785e-05/0.4826, allocations: 21.23 kB / 0.7781 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.071e-05/0.4826, allocations: 41.58 kB / 0.7781 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of SimCode: time 2.1e-07/0.4826, allocations: 0 / 0.7781 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02527/0.5079, allocations: 3.136 MB / 0.7812 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.807/8.315, allocations: 8.719 kB / 0.7812 GB, free: 11.57 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_Utilities_Examples_TestVoltageCTRL_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)