Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance",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.001175/0.001175, allocations: 112.2 kB / 16.41 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.001178/0.001178, allocations: 192.2 kB / 17.34 MB, free: 5.629 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.316/1.316, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7773/0.7773, allocations: 122.9 MB / 414.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 67.84 kB / 0.568 GB, free: 29.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.139/0.1402, allocations: 77.93 MB / 0.6441 GB, free: 9.562 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance): time 0.004859/0.1451, allocations: 3.735 MB / 0.6477 GB, free: 5.809 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002695/0.1478, allocations: 1.8 MB / 0.6495 GB, free: 4 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001819/0.148, allocations: 19.88 kB / 0.6495 GB, free: 3.98 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008567/0.1489, allocations: 258.7 kB / 0.6497 GB, free: 3.727 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005922/0.1495, allocations: 318.3 kB / 0.65 GB, free: 3.414 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000523/0.15, allocations: 250.1 kB / 0.6503 GB, free: 3.172 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005806/0.1506, allocations: 0.6088 MB / 0.6509 GB, free: 2.562 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004166/0.151, allocations: 250.8 kB / 0.6511 GB, free: 2.309 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003064/0.1513, allocations: 243.1 kB / 0.6513 GB, free: 2.07 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002945/0.1516, allocations: 238.9 kB / 0.6516 GB, free: 1.836 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.294e-05/0.1517, allocations: 28 kB / 0.6516 GB, free: 1.809 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000387/0.1521, allocations: 267.4 kB / 0.6518 GB, free: 1.547 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001284/0.1522, allocations: 123.6 kB / 0.652 GB, free: 1.426 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001863/0.1524, allocations: 210.9 kB / 0.6522 GB, free: 1.219 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006371/0.1531, allocations: 0.5952 MB / 0.6527 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.1531, allocations: 0 / 0.6527 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1531, allocations: 0 / 0.6527 GB, free: 0.6211 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.1531, allocations: 0 / 0.6527 GB, free: 0.6211 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001208/0.1543, allocations: 0.7512 MB / 0.6535 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.985e-05/0.1544, allocations: 8.625 kB / 0.6535 GB, free: 15.81 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.082e-05/0.1544, allocations: 70.72 kB / 0.6536 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001015/0.1555, allocations: 136.5 kB / 0.6537 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005783/0.1561, allocations: 411.9 kB / 0.6541 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.374e-05/0.1561, allocations: 25.02 kB / 0.6541 GB, free: 15.14 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.042e-05/0.1562, allocations: 32.33 kB / 0.6541 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007765/0.1569, allocations: 0.5547 MB / 0.6547 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.157, allocations: 4 kB / 0.6547 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.831e-05/0.157, allocations: 15.98 kB / 0.6547 GB, free: 14.45 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.997e-05/0.1571, allocations: 40.53 kB / 0.6547 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006755/0.1578, allocations: 413.7 kB / 0.6551 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002642/0.1604, allocations: 3.334 MB / 0.6584 GB, free: 10.42 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006784/0.1611, allocations: 339 kB / 0.6587 GB, free: 10.08 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002886/0.1614, allocations: 173.6 kB / 0.6589 GB, free: 9.91 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.391e-05/0.1614, allocations: 11.88 kB / 0.6589 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.1615, allocations: 34.56 kB / 0.6589 GB, free: 9.855 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=26): time 1.603e-06/0.1615, allocations: 0 / 0.6589 GB, free: 9.855 MB / 0.4981 GB Notification: Performance of matching and sorting (n=27): time 0.002058/0.1635, allocations: 1.063 MB / 0.66 GB, free: 8.723 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.455e-05/0.1636, allocations: 59.64 kB / 0.66 GB, free: 8.652 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003494/0.164, allocations: 341.6 kB / 0.6603 GB, free: 8.309 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.872e-05/0.164, allocations: 29.7 kB / 0.6604 GB, free: 8.273 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001719/0.1642, allocations: 256.1 kB / 0.6606 GB, free: 8.02 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.273e-05/0.1643, allocations: 95.17 kB / 0.6607 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001134/0.1644, allocations: 74.09 kB / 0.6608 GB, free: 7.848 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000134/0.1646, allocations: 342.8 kB / 0.6611 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002776/0.1648, allocations: 156.8 kB / 0.6612 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003674/0.1652, allocations: 294.5 kB / 0.6615 GB, free: 7 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006662/0.1659, allocations: 487.1 kB / 0.662 GB, free: 6.461 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.1659, allocations: 4 kB / 0.662 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0009602/0.1669, allocations: 0.5582 MB / 0.6625 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/0.1669, allocations: 8 kB / 0.6625 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.769e-06/0.1669, allocations: 4 kB / 0.6626 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003054/0.1672, allocations: 90.44 kB / 0.6626 GB, free: 5.773 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003477/0.1676, allocations: 83.89 kB / 0.6627 GB, free: 5.691 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/0.1676, allocations: 20.14 kB / 0.6627 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002555/0.1679, allocations: 27.98 kB / 0.6628 GB, free: 5.645 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.214e-05/0.1679, allocations: 15.98 kB / 0.6628 GB, free: 5.629 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001669/0.1681, allocations: 173.7 kB / 0.6629 GB, free: 5.449 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.238e-05/0.1682, allocations: 43.72 kB / 0.663 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008284/0.169, allocations: 468 kB / 0.6634 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.169, allocations: 0 / 0.6634 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.169, allocations: 11.92 kB / 0.6634 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.169, allocations: 0 / 0.6634 GB, free: 4.922 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001435/0.1705, allocations: 0.9632 MB / 0.6644 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.88e-06/0.1705, allocations: 8 kB / 0.6644 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002334/0.1707, allocations: 43.97 kB / 0.6644 GB, free: 3.836 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000235/0.171, allocations: 86.44 kB / 0.6645 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.473e-05/0.171, allocations: 11.94 kB / 0.6645 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.171, allocations: 4.094 kB / 0.6645 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/0.171, allocations: 4 kB / 0.6645 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008041/0.1718, allocations: 0.5435 MB / 0.6651 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001584/0.172, allocations: 136.8 kB / 0.6652 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.089e-05/0.1721, allocations: 8 kB / 0.6652 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/0.1723, allocations: 27.91 kB / 0.6652 GB, free: 2.957 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.5e-05/0.1724, allocations: 19.91 kB / 0.6653 GB, free: 2.938 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.775e-05/0.1724, allocations: 12 kB / 0.6653 GB, free: 2.926 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002173/0.1726, allocations: 239.1 kB / 0.6655 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.1726, allocations: 0 / 0.6655 GB, free: 2.695 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004118/0.1731, allocations: 92 kB / 0.6656 GB, free: 2.605 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001082/0.1741, allocations: 1.092 MB / 0.6666 GB, free: 1.465 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0008651/0.175, allocations: 0.643 MB / 0.6673 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.175, allocations: 0 / 0.6673 GB, free: 0.7578 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0004378/0.1755, allocations: 425.7 kB / 0.6677 GB, free: 284 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007002/0.1762, allocations: 125.8 kB / 0.6678 GB, free: 164 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00444/0.1806, allocations: 3.735 MB / 0.6714 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003486/0.181, allocations: 0.8191 MB / 0.6722 GB, free: 11.33 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002336/0.1813, allocations: 91.33 kB / 0.6723 GB, free: 11.24 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001708/0.1814, allocations: 131.3 kB / 0.6725 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of SimCode: time 4.71e-07/0.1814, allocations: 0 / 0.6725 GB, free: 11.12 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02795/0.2094, allocations: 8.297 MB / 0.6806 GB, free: 3.023 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.613/9.823, allocations: 7.234 kB / 0.6806 GB, free: 3.02 MB / 0.5137 GB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1)