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.005911/0.005911, allocations: 101.3 kB / 15.73 MB, free: 6.035 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.001206/0.001206, allocations: 187.3 kB / 16.67 MB, free: 5.965 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.335/1.335, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002108/0.002108, allocations: 282.9 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9451/0.9451, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001767/0.001767, allocations: 92.67 kB / 0.6809 GB, free: 60 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1548, allocations: 86.98 MB / 0.7659 GB, free: 8.996 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003698/0.1586, allocations: 2.306 MB / 0.7681 GB, free: 6.68 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001368/0.16, allocations: 0.7753 MB / 0.7689 GB, free: 5.898 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001424/0.1602, allocations: 0 / 0.7689 GB, free: 5.898 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0006183/0.1608, allocations: 157.8 kB / 0.769 GB, free: 5.746 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002039/0.161, allocations: 67.61 kB / 0.7691 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001681/0.1612, allocations: 55.88 kB / 0.7691 GB, free: 5.625 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002243/0.1614, allocations: 155.5 kB / 0.7693 GB, free: 5.473 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002319/0.1617, allocations: 101 kB / 0.7694 GB, free: 5.375 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001234/0.1618, allocations: 67.77 kB / 0.7695 GB, free: 5.309 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000139/0.162, allocations: 63.69 kB / 0.7695 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.298e-05/0.162, allocations: 15.94 kB / 0.7695 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001045/0.1621, allocations: 51.95 kB / 0.7696 GB, free: 5.18 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.6e-05/0.1622, allocations: 43.83 kB / 0.7696 GB, free: 5.137 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.84e-05/0.1623, allocations: 63.67 kB / 0.7697 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002146/0.1625, allocations: 171.5 kB / 0.7698 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1625, allocations: 0 / 0.7698 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.162e-06/0.1625, allocations: 0 / 0.7698 GB, free: 4.906 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.591e-06/0.1625, allocations: 0 / 0.7698 GB, free: 4.906 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.0007605/0.1633, allocations: 494.5 kB / 0.7703 GB, free: 4.363 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.1633, allocations: 12.03 kB / 0.7703 GB, free: 4.352 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.322e-05/0.1634, allocations: 42.73 kB / 0.7704 GB, free: 4.301 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002058/0.1636, allocations: 28.73 kB / 0.7704 GB, free: 4.273 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002428/0.1638, allocations: 214.8 kB / 0.7706 GB, free: 4.027 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.24e-05/0.1639, allocations: 38.45 kB / 0.7706 GB, free: 3.984 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.823e-05/0.1639, allocations: 15.94 kB / 0.7707 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002623/0.1642, allocations: 150.2 kB / 0.7708 GB, free: 3.809 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.1642, allocations: 3.938 kB / 0.7708 GB, free: 3.805 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.1642, allocations: 7.938 kB / 0.7708 GB, free: 3.797 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.648e-05/0.1643, allocations: 4 kB / 0.7708 GB, free: 3.793 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001878/0.1645, allocations: 83.95 kB / 0.7709 GB, free: 3.711 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007914/0.1653, allocations: 0.6401 MB / 0.7715 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002197/0.1655, allocations: 66.53 kB / 0.7716 GB, free: 2.934 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.665e-05/0.1656, allocations: 36.91 kB / 0.7716 GB, free: 2.895 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/0.1656, allocations: 0 / 0.7716 GB, free: 2.895 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000192/0.1658, allocations: 139 kB / 0.7717 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=7): time 1.173e-06/0.1658, allocations: 0 / 0.7717 GB, free: 2.734 MB / 0.5606 GB Notification: Performance of matching and sorting (n=7): time 0.000358/0.1662, allocations: 167.1 kB / 0.7719 GB, free: 2.559 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.132e-05/0.1662, allocations: 136.5 kB / 0.772 GB, free: 2.395 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/0.1664, allocations: 187.1 kB / 0.7722 GB, free: 2.199 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.1664, allocations: 29.7 kB / 0.7722 GB, free: 2.164 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.464e-05/0.1665, allocations: 131.8 kB / 0.7724 GB, free: 2.027 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.515e-05/0.1665, allocations: 27.64 kB / 0.7724 GB, free: 2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.845e-05/0.1666, allocations: 33.72 kB / 0.7724 GB, free: 1.961 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.876e-05/0.1667, allocations: 326.8 kB / 0.7727 GB, free: 1.633 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.219e-05/0.1668, allocations: 39.98 kB / 0.7728 GB, free: 1.594 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/0.1669, allocations: 113.3 kB / 0.7729 GB, free: 1.449 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002565/0.1672, allocations: 230.4 kB / 0.7731 GB, free: 1.172 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.1672, allocations: 0 / 0.7731 GB, free: 1.172 MB / 0.5606 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003362/0.1676, allocations: 244.6 kB / 0.7733 GB, free: 0.9141 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 4.415e-05/0.1676, allocations: 66 kB / 0.7734 GB, free: 0.8398 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.983e-06/0.1676, allocations: 8 kB / 0.7734 GB, free: 0.832 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.1677, allocations: 4 kB / 0.7734 GB, free: 0.8281 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.1678, allocations: 31.92 kB / 0.7734 GB, free: 0.7969 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.333e-06/0.1678, allocations: 7.938 kB / 0.7735 GB, free: 0.7891 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001317/0.1679, allocations: 27.83 kB / 0.7735 GB, free: 0.7617 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.414e-05/0.1679, allocations: 4 kB / 0.7735 GB, free: 0.7578 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.0001192/0.1681, allocations: 168.1 kB / 0.7736 GB, free: 0.5781 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.293e-05/0.1681, allocations: 19.84 kB / 0.7737 GB, free: 0.5586 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.334e-05/0.1681, allocations: 17.39 kB / 0.7737 GB, free: 0.5391 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.1682, allocations: 0 / 0.7737 GB, free: 0.5391 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.1682, allocations: 3.938 kB / 0.7737 GB, free: 0.5352 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.1682, allocations: 0 / 0.7737 GB, free: 0.5352 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001532/0.1683, allocations: 217.5 kB / 0.7739 GB, free: 280 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.1683, allocations: 0 / 0.7739 GB, free: 280 kB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.649e-05/0.1684, allocations: 8 kB / 0.7739 GB, free: 272 kB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.1684, allocations: 7.938 kB / 0.7739 GB, free: 264 kB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.23e-05/0.1684, allocations: 0 / 0.7739 GB, free: 264 kB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1684, allocations: 0 / 0.7739 GB, free: 264 kB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.1685, allocations: 4 kB / 0.7739 GB, free: 260 kB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003596/0.1688, allocations: 214.9 kB / 0.7741 GB, free: 20 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.3239/0.4927, allocations: 88.67 kB / 0.7742 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.576e-05/0.4928, allocations: 7.391 kB / 0.7742 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001217/0.493, allocations: 10.89 kB / 0.7742 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.202e-05/0.493, allocations: 11.34 kB / 0.7742 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.4931, allocations: 3.547 kB / 0.7742 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001178/0.4932, allocations: 134.6 kB / 0.7744 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4932, allocations: 0 / 0.7744 GB, free: 14.91 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003133/0.4935, allocations: 33.56 kB / 0.7744 GB, free: 14.91 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.0005438/0.4941, allocations: 0.7528 MB / 0.7751 GB, free: 14.29 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002959/0.4944, allocations: 221.6 kB / 0.7753 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.4944, allocations: 0 / 0.7753 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001123/0.4945, allocations: 105.9 kB / 0.7754 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002339/0.4947, allocations: 15.56 kB / 0.7755 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001788/0.4965, allocations: 1.954 MB / 0.7774 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001256/0.4967, allocations: 0.7154 MB / 0.7781 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.136e-05/0.4967, allocations: 23.52 kB / 0.7781 GB, free: 12.06 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.603e-05/0.4968, allocations: 37.92 kB / 0.7781 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of SimCode: time 4.01e-07/0.4968, allocations: 0.875 kB / 0.7781 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01979/0.5166, allocations: 3.136 MB / 0.7812 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.625/8.141, allocations: 12.81 kB / 0.7812 GB, free: 11.68 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)