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.001072/0.001072, allocations: 108 kB / 15.6 MB, free: 132 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.001064/0.001064, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.293/1.293, 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.002125/0.002125, allocations: 278.9 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9632/0.9632, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001742/0.001742, allocations: 95.23 kB / 0.5953 GB, free: 28.11 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1479/0.1497, allocations: 86.98 MB / 0.6803 GB, free: 0.5742 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003843/0.1536, allocations: 2.301 MB / 0.6825 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001226/0.1548, allocations: 0.7739 MB / 0.6833 GB, free: 13.5 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001162/0.155, allocations: 10.69 kB / 0.6833 GB, free: 13.49 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005674/0.1556, allocations: 147.3 kB / 0.6834 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001895/0.1558, allocations: 59.67 kB / 0.6835 GB, free: 13.29 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001718/0.1559, allocations: 59.81 kB / 0.6835 GB, free: 13.23 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002186/0.1562, allocations: 156 kB / 0.6837 GB, free: 13.07 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002357/0.1564, allocations: 108.4 kB / 0.6838 GB, free: 12.97 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001296/0.1566, allocations: 71.7 kB / 0.6839 GB, free: 12.9 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001567/0.1567, allocations: 63.75 kB / 0.6839 GB, free: 12.84 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.301e-05/0.1568, allocations: 8 kB / 0.6839 GB, free: 12.83 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001249/0.1569, allocations: 59.88 kB / 0.684 GB, free: 12.77 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.244e-05/0.1569, allocations: 35.91 kB / 0.684 GB, free: 12.74 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 8.597e-05/0.157, allocations: 71.61 kB / 0.6841 GB, free: 12.67 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002261/0.1573, allocations: 159.5 kB / 0.6842 GB, free: 12.51 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1573, allocations: 4 kB / 0.6842 GB, free: 12.51 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1573, allocations: 0 / 0.6842 GB, free: 12.51 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.1573, allocations: 4 kB / 0.6842 GB, free: 12.5 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.0006691/0.158, allocations: 0.4906 MB / 0.6847 GB, free: 11.95 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.158, allocations: 8.031 kB / 0.6847 GB, free: 11.95 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.906e-05/0.1581, allocations: 38.75 kB / 0.6848 GB, free: 11.9 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000193/0.1583, allocations: 28.83 kB / 0.6848 GB, free: 11.87 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000213/0.1585, allocations: 209.9 kB / 0.685 GB, free: 11.63 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.461e-05/0.1586, allocations: 38.45 kB / 0.685 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.018e-05/0.1586, allocations: 11.94 kB / 0.685 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002567/0.1589, allocations: 150.6 kB / 0.6852 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-06/0.1589, allocations: 0 / 0.6852 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.1589, allocations: 7.984 kB / 0.6852 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.475e-05/0.1589, allocations: 4 kB / 0.6852 GB, free: 11.4 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.1591, allocations: 87.89 kB / 0.6853 GB, free: 11.32 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007918/0.1599, allocations: 0.6401 MB / 0.6859 GB, free: 10.61 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002183/0.1601, allocations: 66.48 kB / 0.686 GB, free: 10.54 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.368e-05/0.1602, allocations: 28.91 kB / 0.686 GB, free: 10.51 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.243e-05/0.1603, allocations: 7.984 kB / 0.686 GB, free: 10.5 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001837/0.1604, allocations: 138.9 kB / 0.6861 GB, free: 10.34 MB / 494.1 MB Notification: Performance of pre-optimization done (n=7): time 1.483e-06/0.1605, allocations: 0 / 0.6861 GB, free: 10.34 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003678/0.1608, allocations: 167.1 kB / 0.6863 GB, free: 10.16 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.327e-05/0.1609, allocations: 144.4 kB / 0.6864 GB, free: 9.992 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001533/0.1611, allocations: 175.4 kB / 0.6866 GB, free: 9.812 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.093e-05/0.1611, allocations: 33.7 kB / 0.6866 GB, free: 9.773 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.119e-05/0.1612, allocations: 135.7 kB / 0.6868 GB, free: 9.633 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.444e-05/0.1612, allocations: 23.73 kB / 0.6868 GB, free: 9.609 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.88e-05/0.1613, allocations: 37.7 kB / 0.6868 GB, free: 9.566 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.1614, allocations: 322.8 kB / 0.6871 GB, free: 9.242 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.436e-05/0.1615, allocations: 39.89 kB / 0.6872 GB, free: 9.203 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001229/0.1616, allocations: 115.2 kB / 0.6873 GB, free: 9.059 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002627/0.1619, allocations: 242.3 kB / 0.6875 GB, free: 8.77 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.1619, allocations: 0 / 0.6875 GB, free: 8.77 MB / 494.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003471/0.1623, allocations: 236.7 kB / 0.6877 GB, free: 8.52 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.453e-05/0.1623, allocations: 67.34 kB / 0.6878 GB, free: 8.441 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.1623, allocations: 4 kB / 0.6878 GB, free: 8.438 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.1623, allocations: 4.312 kB / 0.6878 GB, free: 8.434 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.1625, allocations: 27.98 kB / 0.6878 GB, free: 8.406 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.775e-06/0.1625, allocations: 7.938 kB / 0.6878 GB, free: 8.398 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001355/0.1626, allocations: 27.83 kB / 0.6879 GB, free: 8.371 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.476e-05/0.1626, allocations: 8 kB / 0.6879 GB, free: 8.363 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.0001279/0.1628, allocations: 162 kB / 0.688 GB, free: 8.191 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.598e-05/0.1628, allocations: 19.75 kB / 0.6881 GB, free: 8.172 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.791e-05/0.1628, allocations: 13.39 kB / 0.6881 GB, free: 8.16 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1628, allocations: 8 kB / 0.6881 GB, free: 8.152 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1629, allocations: 3.938 kB / 0.6881 GB, free: 8.148 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1629, allocations: 4 kB / 0.6881 GB, free: 8.145 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001626/0.163, allocations: 213.6 kB / 0.6883 GB, free: 7.887 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.163, allocations: 3.938 kB / 0.6883 GB, free: 7.883 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.611e-05/0.1631, allocations: 8 kB / 0.6883 GB, free: 7.875 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.1631, allocations: 3.938 kB / 0.6883 GB, free: 7.871 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.1632, allocations: 4 kB / 0.6883 GB, free: 7.867 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.1632, allocations: 3.984 kB / 0.6883 GB, free: 7.863 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1632, allocations: 0 / 0.6883 GB, free: 7.863 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003586/0.1635, allocations: 214.6 kB / 0.6885 GB, free: 7.629 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.259e-05/0.1636, allocations: 88.98 kB / 0.6886 GB, free: 7.523 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.991e-05/0.1636, allocations: 7.938 kB / 0.6886 GB, free: 7.516 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.846e-05/0.1637, allocations: 15.98 kB / 0.6886 GB, free: 7.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.393e-05/0.1638, allocations: 4 kB / 0.6886 GB, free: 7.496 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.207e-06/0.1638, allocations: 3.984 kB / 0.6886 GB, free: 7.492 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001101/0.1639, allocations: 140.3 kB / 0.6888 GB, free: 7.355 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1639, allocations: 3.938 kB / 0.6888 GB, free: 7.352 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002456/0.1642, allocations: 35.91 kB / 0.6888 GB, free: 7.316 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.0006462/0.1648, allocations: 0.7507 MB / 0.6895 GB, free: 6.531 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003348/0.1652, allocations: 218.7 kB / 0.6897 GB, free: 6.293 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1652, allocations: 0 / 0.6897 GB, free: 6.293 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001336/0.1653, allocations: 107.3 kB / 0.6898 GB, free: 6.176 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.1656, allocations: 17.88 kB / 0.6899 GB, free: 6.16 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002282/0.1679, allocations: 1.951 MB / 0.6918 GB, free: 4.051 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003032/0.1682, allocations: 0.7157 MB / 0.6925 GB, free: 3.309 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 7.872e-05/0.1683, allocations: 24.66 kB / 0.6925 GB, free: 3.285 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.66e-05/0.1683, allocations: 35.42 kB / 0.6925 GB, free: 3.254 MB / 494.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1683, allocations: 0 / 0.6925 GB, free: 3.254 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02106/0.1894, allocations: 3.073 MB / 0.6955 GB, free: 300 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.908/7.097, allocations: 14.64 kB / 0.6955 GB, free: 288 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 BuildingSystems_BuildingSystems_Electrical_Utilities_Examples_TestVoltageCTRL.fmu > BuildingSystems_BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL.pipe 2>&1)