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.001114/0.001114, 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.001163/0.001164, allocations: 194.4 kB / 16.53 MB, free: 6.664 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.315/1.315, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00237/0.00237, allocations: 279.1 kB / 290.7 MB, free: 2.016 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9431/0.9431, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001822/0.001822, allocations: 92.62 kB / 0.5953 GB, free: 28.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1593, allocations: 86.98 MB / 0.6803 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.004096/0.1635, allocations: 2.299 MB / 0.6825 GB, free: 14.31 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00123/0.1647, allocations: 0.7779 MB / 0.6833 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.1648, allocations: 4 kB / 0.6833 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005844/0.1655, allocations: 152.2 kB / 0.6834 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000209/0.1657, allocations: 67.66 kB / 0.6835 GB, free: 13.31 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001798/0.1659, allocations: 59.81 kB / 0.6835 GB, free: 13.25 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002264/0.1661, allocations: 155.5 kB / 0.6837 GB, free: 13.1 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002453/0.1664, allocations: 103.5 kB / 0.6838 GB, free: 13 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001297/0.1665, allocations: 71.7 kB / 0.6839 GB, free: 12.93 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001583/0.1667, allocations: 63.73 kB / 0.6839 GB, free: 12.87 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.559e-05/0.1667, allocations: 12 kB / 0.6839 GB, free: 12.86 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001213/0.1668, allocations: 55.89 kB / 0.684 GB, free: 12.8 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.591e-05/0.1669, allocations: 35.91 kB / 0.684 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.216e-05/0.167, allocations: 71.66 kB / 0.6841 GB, free: 12.7 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000252/0.1672, allocations: 163.4 kB / 0.6842 GB, free: 12.54 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1673, allocations: 0 / 0.6842 GB, free: 12.54 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1673, allocations: 0 / 0.6842 GB, free: 12.54 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.1673, allocations: 4 kB / 0.6843 GB, free: 12.54 MB / 494.1 MB 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.000761/0.168, allocations: 498.4 kB / 0.6847 GB, free: 11.99 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.1681, allocations: 8.031 kB / 0.6847 GB, free: 11.98 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.226e-05/0.1681, allocations: 42.73 kB / 0.6848 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002113/0.1683, allocations: 24.83 kB / 0.6848 GB, free: 11.91 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000242/0.1686, allocations: 221.9 kB / 0.685 GB, free: 11.65 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.763e-05/0.1687, allocations: 34.45 kB / 0.685 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.116e-05/0.1687, allocations: 11.94 kB / 0.6851 GB, free: 11.6 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000269/0.169, allocations: 141 kB / 0.6852 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.169, allocations: 4 kB / 0.6852 GB, free: 11.45 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.169, allocations: 4 kB / 0.6852 GB, free: 11.44 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.829e-05/0.1691, allocations: 11.92 kB / 0.6852 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001951/0.1693, allocations: 87.89 kB / 0.6853 GB, free: 11.34 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008205/0.1701, allocations: 0.6402 MB / 0.6859 GB, free: 10.64 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.1703, allocations: 58.56 kB / 0.686 GB, free: 10.57 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.445e-05/0.1704, allocations: 28.91 kB / 0.686 GB, free: 10.54 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.179e-05/0.1704, allocations: 3.938 kB / 0.686 GB, free: 10.54 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001953/0.1706, allocations: 142.9 kB / 0.6861 GB, free: 10.38 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.503e-06/0.1706, allocations: 0 / 0.6861 GB, free: 10.38 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003731/0.171, allocations: 167.1 kB / 0.6863 GB, free: 10.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.758e-05/0.1711, allocations: 132.5 kB / 0.6864 GB, free: 10.04 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001628/0.1713, allocations: 175.4 kB / 0.6866 GB, free: 9.859 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.1713, allocations: 29.7 kB / 0.6866 GB, free: 9.824 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.158e-05/0.1714, allocations: 147.7 kB / 0.6868 GB, free: 9.672 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.539e-05/0.1714, allocations: 31.61 kB / 0.6868 GB, free: 9.641 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.743e-05/0.1715, allocations: 33.72 kB / 0.6868 GB, free: 9.602 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.1716, allocations: 326.8 kB / 0.6871 GB, free: 9.273 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.806e-05/0.1717, allocations: 43.88 kB / 0.6872 GB, free: 9.23 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001286/0.1718, allocations: 109.4 kB / 0.6873 GB, free: 9.09 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002556/0.1721, allocations: 226.4 kB / 0.6875 GB, free: 8.816 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.1721, allocations: 4 kB / 0.6875 GB, free: 8.812 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003724/0.1725, allocations: 233 kB / 0.6877 GB, free: 8.566 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.93e-05/0.1726, allocations: 79.33 kB / 0.6878 GB, free: 8.477 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.1726, allocations: 4 kB / 0.6878 GB, free: 8.473 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.1726, allocations: 4 kB / 0.6878 GB, free: 8.469 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.1727, allocations: 23.98 kB / 0.6878 GB, free: 8.445 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.638e-06/0.1727, allocations: 7.938 kB / 0.6878 GB, free: 8.438 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000134/0.1729, allocations: 23.83 kB / 0.6879 GB, free: 8.414 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.641e-05/0.1729, allocations: 12 kB / 0.6879 GB, free: 8.402 MB / 494.1 MB 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.0001282/0.173, allocations: 166 kB / 0.688 GB, free: 8.227 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.656e-05/0.1731, allocations: 15.75 kB / 0.688 GB, free: 8.211 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.739e-05/0.1731, allocations: 13.41 kB / 0.6881 GB, free: 8.199 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.1731, allocations: 0 / 0.6881 GB, free: 8.199 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.1731, allocations: 4 kB / 0.6881 GB, free: 8.195 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.1731, allocations: 7.922 kB / 0.6881 GB, free: 8.188 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001711/0.1733, allocations: 209.6 kB / 0.6883 GB, free: 7.934 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.1733, allocations: 4 kB / 0.6883 GB, free: 7.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.09e-05/0.1734, allocations: 15.92 kB / 0.6883 GB, free: 7.914 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.168e-05/0.1734, allocations: 7.969 kB / 0.6883 GB, free: 7.906 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.352e-05/0.1734, allocations: 8 kB / 0.6883 GB, free: 7.898 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.1734, allocations: 0 / 0.6883 GB, free: 7.898 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1734, allocations: 3.938 kB / 0.6883 GB, free: 7.895 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003625/0.1738, allocations: 214.6 kB / 0.6885 GB, free: 7.66 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.113e-05/0.1739, allocations: 92.97 kB / 0.6886 GB, free: 7.551 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.922e-05/0.1739, allocations: 7.938 kB / 0.6886 GB, free: 7.543 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.347e-05/0.174, allocations: 8.062 kB / 0.6886 GB, free: 7.535 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.592e-05/0.1741, allocations: 11.98 kB / 0.6886 GB, free: 7.523 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.218e-06/0.1741, allocations: 4 kB / 0.6886 GB, free: 7.52 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001075/0.1742, allocations: 136.3 kB / 0.6888 GB, free: 7.387 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1742, allocations: 0 / 0.6888 GB, free: 7.387 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002507/0.1745, allocations: 35.91 kB / 0.6888 GB, free: 7.352 MB / 494.1 MB 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.0005994/0.1751, allocations: 0.7509 MB / 0.6895 GB, free: 6.566 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003043/0.1754, allocations: 222.6 kB / 0.6897 GB, free: 6.324 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1754, allocations: 0 / 0.6897 GB, free: 6.324 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000123/0.1755, allocations: 99.39 kB / 0.6898 GB, free: 6.215 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002234/0.1758, allocations: 24.67 kB / 0.6899 GB, free: 6.191 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002113/0.1779, allocations: 1.952 MB / 0.6918 GB, free: 4.082 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002707/0.1782, allocations: 0.708 MB / 0.6925 GB, free: 3.348 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.205e-05/0.1783, allocations: 28.41 kB / 0.6925 GB, free: 3.32 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.384e-05/0.1783, allocations: 39.53 kB / 0.6925 GB, free: 3.285 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1783, allocations: 3.938 kB / 0.6925 GB, free: 3.281 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02101/0.1993, allocations: 3.075 MB / 0.6955 GB, free: 328 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.502/7.701, allocations: 12.83 kB / 0.6955 GB, free: 320 kB / 494.1 MB (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)