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.001358/0.001358, 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.001309/0.001309, allocations: 194.9 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.394/1.394, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002436/0.002436, allocations: 287 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.061/1.061, allocations: 178.5 MB / 0.5073 GB, free: 4.574 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002715/0.002715, allocations: 94.61 kB / 0.6065 GB, free: 24.82 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1532/0.1559, allocations: 89.16 MB / 0.6936 GB, free: 4.207 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Utilities.Examples.TestVoltageCTRL): time 0.003989/0.16, allocations: 2.289 MB / 0.6958 GB, free: 1.918 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00129/0.1613, allocations: 0.785 MB / 0.6966 GB, free: 1.129 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.651e-05/0.1614, allocations: 0.6562 kB / 0.6966 GB, free: 1.129 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005616/0.1619, allocations: 159.9 kB / 0.6967 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001683/0.1621, allocations: 71.05 kB / 0.6968 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00015/0.1623, allocations: 51.86 kB / 0.6969 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002364/0.1625, allocations: 163.5 kB / 0.697 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002425/0.1628, allocations: 95.22 kB / 0.6971 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001265/0.1629, allocations: 67.7 kB / 0.6972 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001473/0.1631, allocations: 75.67 kB / 0.6972 GB, free: 476 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.964e-05/0.1631, allocations: 12 kB / 0.6973 GB, free: 464 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001176/0.1632, allocations: 47.91 kB / 0.6973 GB, free: 416 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.038e-05/0.1633, allocations: 39.89 kB / 0.6973 GB, free: 376 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.871e-05/0.1634, allocations: 67.66 kB / 0.6974 GB, free: 308 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002337/0.1637, allocations: 159.5 kB / 0.6976 GB, free: 148 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1637, allocations: 0 / 0.6976 GB, free: 148 kB / 494.1 MB Notification: Performance of FrontEnd: time 3.336e-06/0.1637, allocations: 3.984 kB / 0.6976 GB, free: 144 kB / 494.1 MB Notification: Performance of Transformations before backend: time 4.88e-06/0.1637, allocations: 0 / 0.6976 GB, free: 144 kB / 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.0007732/0.1645, allocations: 494.5 kB / 0.698 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.813e-05/0.1645, allocations: 12.03 kB / 0.698 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.682e-05/0.1646, allocations: 42.75 kB / 0.6981 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001953/0.1648, allocations: 24.73 kB / 0.6981 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002482/0.165, allocations: 213.8 kB / 0.6983 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.724e-05/0.1651, allocations: 34.45 kB / 0.6983 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.29e-05/0.1651, allocations: 15.94 kB / 0.6984 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003028/0.1654, allocations: 154.5 kB / 0.6985 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.1655, allocations: 0 / 0.6985 GB, free: 15.05 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.1655, allocations: 4 kB / 0.6985 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.1655, allocations: 8 kB / 0.6985 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002122/0.1657, allocations: 83.94 kB / 0.6986 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008977/0.1666, allocations: 0.6479 MB / 0.6992 GB, free: 14.24 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002366/0.1669, allocations: 54.61 kB / 0.6993 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.591e-05/0.167, allocations: 32.84 kB / 0.6993 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.759e-06/0.167, allocations: 0 / 0.6993 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002951/0.1673, allocations: 142.9 kB / 0.6995 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 4.649e-06/0.1673, allocations: 3.984 kB / 0.6995 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0003969/0.1677, allocations: 167.1 kB / 0.6996 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.206e-05/0.1678, allocations: 136.5 kB / 0.6997 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001904/0.168, allocations: 191.3 kB / 0.6999 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.953e-05/0.168, allocations: 25.7 kB / 0.7 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.1681, allocations: 135.8 kB / 0.7001 GB, free: 13.26 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.965e-05/0.1682, allocations: 27.67 kB / 0.7001 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.854e-05/0.1683, allocations: 45.61 kB / 0.7002 GB, free: 13.18 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.1684, allocations: 318.8 kB / 0.7005 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.1685, allocations: 35.98 kB / 0.7005 GB, free: 12.83 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/0.1687, allocations: 125.2 kB / 0.7006 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002757/0.169, allocations: 222.4 kB / 0.7008 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.169, allocations: 4 kB / 0.7008 GB, free: 12.4 MB / 0.4981 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003833/0.1694, allocations: 240.6 kB / 0.7011 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 5.621e-05/0.1694, allocations: 63.34 kB / 0.7011 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.174e-06/0.1694, allocations: 4 kB / 0.7011 GB, free: 12.07 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.1695, allocations: 4 kB / 0.7011 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001308/0.1696, allocations: 40.23 kB / 0.7012 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/0.1696, allocations: 7.984 kB / 0.7012 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001297/0.1698, allocations: 19.84 kB / 0.7012 GB, free: 12 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.686e-05/0.1698, allocations: 12.31 kB / 0.7012 GB, free: 11.98 MB / 0.4981 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.0001499/0.1699, allocations: 163.5 kB / 0.7014 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.536e-05/0.17, allocations: 15.84 kB / 0.7014 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.141e-05/0.17, allocations: 17.39 kB / 0.7014 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.17, allocations: 0 / 0.7014 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.17, allocations: 4 kB / 0.7014 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.17, allocations: 0 / 0.7014 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002018/0.1702, allocations: 213.6 kB / 0.7016 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1702, allocations: 3.938 kB / 0.7016 GB, free: 11.51 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.813e-05/0.1703, allocations: 8 kB / 0.7016 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.35e-06/0.1703, allocations: 11.92 kB / 0.7016 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.1704, allocations: 4 kB / 0.7016 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1704, allocations: 0 / 0.7016 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.1704, allocations: 3.938 kB / 0.7016 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004047/0.1708, allocations: 226.5 kB / 0.7018 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.471e-05/0.1709, allocations: 84.92 kB / 0.7019 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.975e-05/0.1709, allocations: 7.969 kB / 0.7019 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.886e-05/0.171, allocations: 11.98 kB / 0.7019 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.078e-05/0.1711, allocations: 11.98 kB / 0.702 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.855e-06/0.1711, allocations: 0 / 0.702 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001174/0.1712, allocations: 131.2 kB / 0.7021 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.01e-07/0.1712, allocations: 4.062 kB / 0.7021 GB, free: 10.97 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000258/0.1715, allocations: 31.94 kB / 0.7021 GB, free: 10.94 MB / 0.4981 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.0007048/0.1722, allocations: 0.7506 MB / 0.7028 GB, free: 10.16 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003436/0.1725, allocations: 222.7 kB / 0.7031 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.1726, allocations: 0 / 0.7031 GB, free: 9.914 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001343/0.1727, allocations: 103.4 kB / 0.7032 GB, free: 9.801 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002309/0.1729, allocations: 16 kB / 0.7032 GB, free: 9.785 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002341/0.1753, allocations: 1.947 MB / 0.7051 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003548/0.1757, allocations: 0.7194 MB / 0.7058 GB, free: 6.941 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.849e-05/0.1758, allocations: 20.42 kB / 0.7058 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.799e-05/0.1758, allocations: 39.42 kB / 0.7058 GB, free: 6.883 MB / 0.4981 GB Notification: Performance of SimCode: time 3.51e-07/0.1758, allocations: 4 kB / 0.7058 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02578/0.2016, allocations: 3.08 MB / 0.7088 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.826/8.027, allocations: 21.31 kB / 0.7089 GB, free: 3.898 MB / 0.4981 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 & 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)