Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance.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.DC.Lines.Examples.Resistance,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_DC_Lines_Examples_Resistance",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.001341/0.001341, allocations: 108.3 kB / 16.41 MB, free: 6.445 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.00191/0.00191, allocations: 191.9 kB / 17.34 MB, free: 5.738 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.425/1.425, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8321/0.8321, allocations: 126.7 MB / 417.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 66.61 kB / 0.5735 GB, free: 27 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1507, allocations: 78.87 MB / 0.6505 GB, free: 3.617 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.DC.Lines.Examples.Resistance): time 0.004664/0.1554, allocations: 3.061 MB / 0.6535 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002116/0.1576, allocations: 1.328 MB / 0.6548 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001138/0.1577, allocations: 4 kB / 0.6548 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001015/0.1587, allocations: 340.3 kB / 0.6551 GB, free: 14.87 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003549/0.1591, allocations: 143.3 kB / 0.6553 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003848/0.1595, allocations: 139.6 kB / 0.6554 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0003715/0.1598, allocations: 295.1 kB / 0.6557 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000453/0.1603, allocations: 244.4 kB / 0.6559 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001556/0.1605, allocations: 123.5 kB / 0.656 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002958/0.1608, allocations: 139.5 kB / 0.6562 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 4.053e-05/0.1608, allocations: 20 kB / 0.6562 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003094/0.1611, allocations: 163.7 kB / 0.6564 GB, free: 13.63 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.813e-05/0.1613, allocations: 79.78 kB / 0.6564 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001277/0.1614, allocations: 115.5 kB / 0.6565 GB, free: 13.44 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004606/0.1619, allocations: 338.8 kB / 0.6569 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1619, allocations: 0 / 0.6569 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.252e-06/0.1619, allocations: 0 / 0.6569 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.522e-06/0.1619, allocations: 0 / 0.6569 GB, free: 13.11 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008999/0.1628, allocations: 0.5259 MB / 0.6574 GB, free: 12.53 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.1628, allocations: 12.03 kB / 0.6574 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.549e-05/0.1629, allocations: 54.73 kB / 0.6574 GB, free: 12.45 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005877/0.1635, allocations: 80.72 kB / 0.6575 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003668/0.1639, allocations: 244 kB / 0.6578 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.1639, allocations: 16.69 kB / 0.6578 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.474e-05/0.164, allocations: 24.36 kB / 0.6578 GB, free: 12.06 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004597/0.1644, allocations: 295.4 kB / 0.6581 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.1644, allocations: 3.938 kB / 0.6581 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.1645, allocations: 8 kB / 0.6581 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.485e-05/0.1645, allocations: 20.36 kB / 0.6581 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003243/0.1648, allocations: 193 kB / 0.6583 GB, free: 11.53 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001604/0.1665, allocations: 1.468 MB / 0.6597 GB, free: 9.895 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002965/0.1668, allocations: 175.7 kB / 0.6599 GB, free: 9.695 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.476e-05/0.1668, allocations: 36.84 kB / 0.6599 GB, free: 9.656 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.188e-05/0.1669, allocations: 0 / 0.6599 GB, free: 9.656 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.962e-05/0.1669, allocations: 34.5 kB / 0.66 GB, free: 9.613 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/0.1669, allocations: 0 / 0.66 GB, free: 9.613 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.000522/0.1674, allocations: 223.5 kB / 0.6602 GB, free: 9.367 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.519e-05/0.1675, allocations: 51.41 kB / 0.6602 GB, free: 9.305 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/0.1677, allocations: 199.5 kB / 0.6604 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.578e-05/0.1677, allocations: 29.7 kB / 0.6604 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001192/0.1679, allocations: 172.1 kB / 0.6606 GB, free: 8.895 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.101e-05/0.1679, allocations: 23.78 kB / 0.6606 GB, free: 8.871 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.941e-05/0.168, allocations: 41.67 kB / 0.6607 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.1681, allocations: 330.7 kB / 0.661 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.945e-05/0.1682, allocations: 35.98 kB / 0.661 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001138/0.1683, allocations: 96.56 kB / 0.6611 GB, free: 8.332 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001863/0.1685, allocations: 148.5 kB / 0.6612 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.1685, allocations: 0 / 0.6612 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003204/0.1688, allocations: 190.1 kB / 0.6614 GB, free: 7.961 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.1689, allocations: 15.92 kB / 0.6614 GB, free: 7.945 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.531e-06/0.1689, allocations: 0 / 0.6614 GB, free: 7.945 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001569/0.169, allocations: 33.06 kB / 0.6615 GB, free: 7.91 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.1692, allocations: 24 kB / 0.6615 GB, free: 7.887 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001172/0.1703, allocations: 1.426 MB / 0.6629 GB, free: 6.316 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.1705, allocations: 19.89 kB / 0.6629 GB, free: 6.297 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.1705, allocations: 4 kB / 0.6629 GB, free: 6.293 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001386/0.1706, allocations: 145.7 kB / 0.6631 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.042e-05/0.1707, allocations: 24 kB / 0.6631 GB, free: 6.117 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.194e-05/0.1707, allocations: 17.39 kB / 0.6631 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.402e-06/0.1707, allocations: 0 / 0.6631 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.1707, allocations: 0 / 0.6631 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.1707, allocations: 8.031 kB / 0.6631 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005487/0.1713, allocations: 443.2 kB / 0.6635 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.1713, allocations: 0 / 0.6635 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.82e-05/0.1713, allocations: 8 kB / 0.6635 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.802e-05/0.1714, allocations: 24.84 kB / 0.6636 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.1714, allocations: 0 / 0.6636 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/0.1725, allocations: 1.422 MB / 0.6649 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.1725, allocations: 400 / 0.6649 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002351/0.1728, allocations: 216.2 kB / 0.6651 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.879e-05/0.1729, allocations: 101 kB / 0.6652 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.792e-05/0.1729, allocations: 0 / 0.6652 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.173, allocations: 8.094 kB / 0.6653 GB, free: 3.648 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.816e-05/0.173, allocations: 4 kB / 0.6653 GB, free: 3.645 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.324e-06/0.173, allocations: 4 kB / 0.6653 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000132/0.1732, allocations: 140.4 kB / 0.6654 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1732, allocations: 0 / 0.6654 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003252/0.1735, allocations: 55.89 kB / 0.6654 GB, free: 3.449 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 5 * 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 {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005698/0.1741, allocations: 0.7483 MB / 0.6662 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003812/0.1745, allocations: 206.5 kB / 0.6664 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1745, allocations: 0.5625 kB / 0.6664 GB, free: 2.453 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001717/0.1747, allocations: 150.7 kB / 0.6665 GB, free: 2.293 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003772/0.1751, allocations: 48.62 kB / 0.6666 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002365/0.1774, allocations: 2.047 MB / 0.6686 GB, free: 68 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004227/0.1779, allocations: 0.7476 MB / 0.6693 GB, free: 15.29 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 9.328e-05/0.178, allocations: 25.53 kB / 0.6693 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.235e-05/0.1781, allocations: 51.42 kB / 0.6694 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of SimCode: time 3.6e-07/0.1781, allocations: 4 kB / 0.6694 GB, free: 15.21 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03103/0.2091, allocations: 3.724 MB / 0.673 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.712/9.921, allocations: 7.734 kB / 0.673 GB, free: 11.6 MB / 0.5137 GB (rm -f IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance_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_DC_Lines_Examples_Resistance.fmu > IBPSA_latest_IBPSA.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)