Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.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.DynamicLoads,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_AC_OnePhase_Loads_Examples_DynamicLoads",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.001066/0.001066, allocations: 111.2 kB / 16.41 MB, free: 6.5 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.001013/0.001013, allocations: 193.2 kB / 17.34 MB, free: 5.762 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.308/1.308, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7414/0.7414, allocations: 122.9 MB / 414.1 MB, free: 15.78 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 63.61 kB / 0.568 GB, free: 28.91 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1295, allocations: 77.93 MB / 0.6441 GB, free: 9.555 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads): time 0.004672/0.1342, allocations: 3.251 MB / 0.6472 GB, free: 6.289 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003184/0.1374, allocations: 2.023 MB / 0.6492 GB, free: 4.254 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000167/0.1376, allocations: 4 kB / 0.6492 GB, free: 4.25 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009175/0.1385, allocations: 278.8 kB / 0.6495 GB, free: 3.977 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006084/0.1392, allocations: 242.9 kB / 0.6497 GB, free: 3.738 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007306/0.1399, allocations: 293.4 kB / 0.65 GB, free: 3.453 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005137/0.1404, allocations: 410.7 kB / 0.6504 GB, free: 3.051 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003822/0.1408, allocations: 200.5 kB / 0.6506 GB, free: 2.852 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000284/0.1411, allocations: 167.4 kB / 0.6507 GB, free: 2.688 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004027/0.1415, allocations: 199.3 kB / 0.6509 GB, free: 2.492 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.572e-05/0.1416, allocations: 24 kB / 0.6509 GB, free: 2.469 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004577/0.1421, allocations: 271.5 kB / 0.6512 GB, free: 2.203 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001467/0.1422, allocations: 119.7 kB / 0.6513 GB, free: 2.086 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001704/0.1424, allocations: 143.3 kB / 0.6515 GB, free: 1.945 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006117/0.143, allocations: 494.2 kB / 0.6519 GB, free: 1.461 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.143, allocations: 0 / 0.6519 GB, free: 1.461 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.143, allocations: 0 / 0.6519 GB, free: 1.461 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.143, allocations: 0 / 0.6519 GB, free: 1.461 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001089/0.1441, allocations: 0.6114 MB / 0.6525 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.1442, allocations: 12.62 kB / 0.6525 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.254e-05/0.1443, allocations: 62.72 kB / 0.6526 GB, free: 0.7188 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001033/0.1453, allocations: 116.6 kB / 0.6527 GB, free: 0.6055 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004022/0.1457, allocations: 286 kB / 0.653 GB, free: 292 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.1457, allocations: 24.81 kB / 0.653 GB, free: 268 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.1459, allocations: 40.47 kB / 0.653 GB, free: 228 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007068/0.1466, allocations: 453.1 kB / 0.6535 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.1466, allocations: 3.953 kB / 0.6535 GB, free: 15.74 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.956e-05/0.1467, allocations: 8 kB / 0.6535 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001452/0.1468, allocations: 40.53 kB / 0.6535 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006304/0.1475, allocations: 365.9 kB / 0.6539 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002518/0.15, allocations: 2.218 MB / 0.656 GB, free: 12.92 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004271/0.1504, allocations: 270.4 kB / 0.6563 GB, free: 12.64 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/0.1507, allocations: 161.3 kB / 0.6564 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.679e-05/0.1507, allocations: 4 kB / 0.6565 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.287e-05/0.1507, allocations: 34.56 kB / 0.6565 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=22): time 1.413e-06/0.1507, allocations: 0 / 0.6565 GB, free: 12.44 MB / 0.4981 GB Notification: Performance of matching and sorting (n=23): time 0.001811/0.1525, allocations: 1.066 MB / 0.6575 GB, free: 11.3 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.09e-05/0.1526, allocations: 55.41 kB / 0.6576 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003085/0.1529, allocations: 256.9 kB / 0.6578 GB, free: 10.98 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.1529, allocations: 29.7 kB / 0.6579 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.1531, allocations: 188.4 kB / 0.658 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.725e-05/0.1531, allocations: 91.25 kB / 0.6581 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001351/0.1533, allocations: 81.59 kB / 0.6582 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.1534, allocations: 338.8 kB / 0.6585 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002911/0.1537, allocations: 151.9 kB / 0.6587 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003444/0.154, allocations: 253.5 kB / 0.6589 GB, free: 9.805 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005726/0.1546, allocations: 410.8 kB / 0.6593 GB, free: 9.371 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.1546, allocations: 3.938 kB / 0.6593 GB, free: 9.367 MB / 0.4981 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001224/0.1559, allocations: 0.5964 MB / 0.6599 GB, free: 8.762 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.1559, allocations: 4 kB / 0.6599 GB, free: 8.758 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.1559, allocations: 4.312 kB / 0.6599 GB, free: 8.754 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007153/0.1566, allocations: 192.7 kB / 0.6601 GB, free: 8.562 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003272/0.157, allocations: 63.89 kB / 0.6601 GB, free: 8.5 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002858/0.1598, allocations: 2.496 MB / 0.6626 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004207/0.1603, allocations: 32.03 kB / 0.6626 GB, free: 5.832 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.999e-05/0.1603, allocations: 8 kB / 0.6626 GB, free: 5.824 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002084/0.1605, allocations: 170.8 kB / 0.6628 GB, free: 5.648 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.411e-05/0.1606, allocations: 23.86 kB / 0.6628 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000543/0.1612, allocations: 351.5 kB / 0.6631 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.1612, allocations: 7.984 kB / 0.6631 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-06/0.1612, allocations: 0 / 0.6631 GB, free: 5.27 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1612, allocations: 4 kB / 0.6631 GB, free: 5.266 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00109/0.1623, allocations: 0.8254 MB / 0.664 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.1623, allocations: 0 / 0.664 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004167/0.1627, allocations: 67.94 kB / 0.664 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-06/0.1627, allocations: 7.938 kB / 0.664 GB, free: 4.305 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.1628, allocations: 11.98 kB / 0.664 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.1628, allocations: 3.938 kB / 0.664 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1628, allocations: 0 / 0.664 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007363/0.1635, allocations: 0.6167 MB / 0.6646 GB, free: 3.652 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000151/0.1637, allocations: 129 kB / 0.6648 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.974e-05/0.1637, allocations: 8 kB / 0.6648 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002643/0.164, allocations: 11.98 kB / 0.6648 GB, free: 3.488 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.508e-05/0.1641, allocations: 23.92 kB / 0.6648 GB, free: 3.465 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.748e-05/0.1641, allocations: 4 kB / 0.6648 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002216/0.1643, allocations: 192.4 kB / 0.665 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1643, allocations: 0 / 0.665 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004197/0.1647, allocations: 88 kB / 0.6651 GB, free: 3.191 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dynRC.q[1],dynRC.q[2],dynRL.psi[1],dynRL.psi[2]) * 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 (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * 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.001014/0.1658, allocations: 1.167 MB / 0.6662 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009316/0.1667, allocations: 0.5416 MB / 0.6667 GB, free: 1.438 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.066e-06/0.1667, allocations: 4 kB / 0.6667 GB, free: 1.434 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0002047/0.1669, allocations: 151.8 kB / 0.6669 GB, free: 1.285 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004501/0.1674, allocations: 50.08 kB / 0.6669 GB, free: 1.238 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005057/0.1725, allocations: 3.7 MB / 0.6706 GB, free: 13.37 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003209/0.1728, allocations: 0.8027 MB / 0.6713 GB, free: 12.54 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0002195/0.173, allocations: 82.84 kB / 0.6714 GB, free: 12.46 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001453/0.1732, allocations: 83.41 kB / 0.6715 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of SimCode: time 4.61e-07/0.1732, allocations: 0 / 0.6715 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0244/0.1976, allocations: 6.925 MB / 0.6783 GB, free: 5.609 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.376/9.574, allocations: 10.98 kB / 0.6783 GB, free: 5.602 MB / 0.5137 GB (rm -f IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads_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_DynamicLoads.fmu > IBPSA_latest_IBPSA.Electrical.AC.OnePhase.Loads.Examples.DynamicLoads.pipe 2>&1)