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.001146/0.001146, allocations: 107.7 kB / 16.4 MB, free: 6.016 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.001246/0.001246, allocations: 195.8 kB / 17.34 MB, free: 5.609 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.361/1.361, 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.8092/0.8092, allocations: 122.9 MB / 414.1 MB, free: 15.72 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 63.08 kB / 0.5679 GB, free: 29.07 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.159/0.1602, allocations: 77.94 MB / 0.644 GB, free: 9.504 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.DC.Lines.Examples.Resistance): time 0.005/0.1653, allocations: 3.049 MB / 0.647 GB, free: 6.441 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002187/0.1675, allocations: 1.328 MB / 0.6483 GB, free: 5.105 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002002/0.1677, allocations: 11.94 kB / 0.6483 GB, free: 5.094 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001138/0.1689, allocations: 338.7 kB / 0.6487 GB, free: 4.762 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004443/0.1693, allocations: 143.3 kB / 0.6488 GB, free: 4.621 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004003/0.1697, allocations: 135.6 kB / 0.6489 GB, free: 4.488 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004288/0.1702, allocations: 303 kB / 0.6492 GB, free: 4.191 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004734/0.1707, allocations: 240.4 kB / 0.6494 GB, free: 3.953 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002137/0.1709, allocations: 127.6 kB / 0.6496 GB, free: 3.828 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003321/0.1712, allocations: 135.5 kB / 0.6497 GB, free: 3.695 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.183e-05/0.1713, allocations: 20 kB / 0.6497 GB, free: 3.676 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003246/0.1716, allocations: 167.6 kB / 0.6499 GB, free: 3.512 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001096/0.1717, allocations: 79.78 kB / 0.6499 GB, free: 3.434 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.1719, allocations: 107.5 kB / 0.65 GB, free: 3.328 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005434/0.1724, allocations: 338.8 kB / 0.6504 GB, free: 2.996 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1724, allocations: 0 / 0.6504 GB, free: 2.996 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.1724, allocations: 0 / 0.6504 GB, free: 2.996 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.1725, allocations: 0 / 0.6504 GB, free: 2.996 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0009984/0.1735, allocations: 0.5259 MB / 0.6509 GB, free: 2.418 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.1735, allocations: 8.625 kB / 0.6509 GB, free: 2.41 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.398e-05/0.1736, allocations: 58.72 kB / 0.6509 GB, free: 2.344 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006418/0.1742, allocations: 84.72 kB / 0.651 GB, free: 2.262 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003486/0.1746, allocations: 240 kB / 0.6513 GB, free: 1.988 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.1746, allocations: 16.75 kB / 0.6513 GB, free: 1.973 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.267e-05/0.1747, allocations: 16.38 kB / 0.6513 GB, free: 1.957 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004614/0.1751, allocations: 303.1 kB / 0.6516 GB, free: 1.641 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.14e-05/0.1752, allocations: 7.922 kB / 0.6516 GB, free: 1.633 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.993e-05/0.1752, allocations: 16 kB / 0.6516 GB, free: 1.617 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.601e-05/0.1752, allocations: 16.36 kB / 0.6516 GB, free: 1.602 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000311/0.1756, allocations: 193 kB / 0.6518 GB, free: 1.414 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001626/0.1772, allocations: 1.472 MB / 0.6532 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002929/0.1775, allocations: 167.7 kB / 0.6534 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.107e-05/0.1776, allocations: 40.78 kB / 0.6534 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.397e-06/0.1776, allocations: 0 / 0.6534 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.599e-05/0.1776, allocations: 34.5 kB / 0.6535 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/0.1776, allocations: 0 / 0.6535 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=7): time 0.0005306/0.1782, allocations: 227.5 kB / 0.6537 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.518e-05/0.1782, allocations: 55.39 kB / 0.6537 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002024/0.1784, allocations: 194.3 kB / 0.6539 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.705e-05/0.1785, allocations: 25.7 kB / 0.6539 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.1786, allocations: 171.9 kB / 0.6541 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.537e-05/0.1786, allocations: 27.94 kB / 0.6541 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.659e-05/0.1787, allocations: 37.66 kB / 0.6542 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001203/0.1788, allocations: 338.7 kB / 0.6545 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.142e-05/0.1789, allocations: 27.98 kB / 0.6545 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001176/0.179, allocations: 100.6 kB / 0.6546 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001927/0.1792, allocations: 148.4 kB / 0.6548 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.1792, allocations: 0 / 0.6548 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000322/0.1795, allocations: 190.1 kB / 0.6549 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.1796, allocations: 8 kB / 0.655 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.1796, allocations: 0 / 0.655 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001702/0.1798, allocations: 37.06 kB / 0.655 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001094/0.1799, allocations: 23.98 kB / 0.655 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001086/0.181, allocations: 1.422 MB / 0.6564 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001304/0.1811, allocations: 19.92 kB / 0.6564 GB, free: 12.19 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.103e-05/0.1811, allocations: 4 kB / 0.6564 GB, free: 12.19 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.0001517/0.1813, allocations: 151.6 kB / 0.6566 GB, free: 12.03 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.306e-05/0.1813, allocations: 20.08 kB / 0.6566 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.498e-05/0.1814, allocations: 25.34 kB / 0.6566 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.1814, allocations: 0 / 0.6566 GB, free: 11.99 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.1814, allocations: 4 kB / 0.6566 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.1814, allocations: 0 / 0.6566 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005013/0.1819, allocations: 447.5 kB / 0.657 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1819, allocations: 0 / 0.657 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.106e-05/0.182, allocations: 8.062 kB / 0.657 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.616e-05/0.1821, allocations: 32.84 kB / 0.6571 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-06/0.1821, allocations: 0 / 0.6571 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009924/0.1831, allocations: 1.422 MB / 0.6585 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1831, allocations: 80 / 0.6585 GB, free: 9.887 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002414/0.1833, allocations: 208.2 kB / 0.6587 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.501e-05/0.1834, allocations: 101 kB / 0.6588 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.1835, allocations: 0 / 0.6588 GB, free: 9.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001116/0.1836, allocations: 12.09 kB / 0.6588 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.095e-05/0.1836, allocations: 7.984 kB / 0.6588 GB, free: 9.527 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.551e-06/0.1836, allocations: 0 / 0.6588 GB, free: 9.527 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001321/0.1838, allocations: 148.3 kB / 0.6589 GB, free: 9.383 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1838, allocations: 0 / 0.6589 GB, free: 9.383 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003357/0.1841, allocations: 51.89 kB / 0.659 GB, free: 9.332 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.0004784/0.1846, allocations: 0.7444 MB / 0.6597 GB, free: 8.555 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003779/0.185, allocations: 210.5 kB / 0.6599 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.185, allocations: 0.5625 kB / 0.6599 GB, free: 8.336 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001559/0.1852, allocations: 158.6 kB / 0.6601 GB, free: 8.168 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00039/0.1856, allocations: 33.47 kB / 0.6601 GB, free: 8.137 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00238/0.1879, allocations: 2.054 MB / 0.6621 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003409/0.1883, allocations: 0.7552 MB / 0.6628 GB, free: 5.16 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001062/0.1884, allocations: 25.53 kB / 0.6629 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.328e-05/0.1885, allocations: 51.42 kB / 0.6629 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of SimCode: time 3.3e-07/0.1885, allocations: 0 / 0.6629 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02524/0.2138, allocations: 3.713 MB / 0.6665 GB, free: 1.488 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.107/9.321, allocations: 2.234 kB / 0.6665 GB, free: 1.488 MB / 0.4981 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)