Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_DC_Loads_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Electrical.DC.Loads.Examples.Resistor,fileNamePrefix="IBPSA_latest_IBPSA_Electrical_DC_Loads_Examples_Resistor",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.001079/0.001079, allocations: 105.3 kB / 16.41 MB, free: 6.492 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.00113/0.00113, allocations: 193.8 kB / 17.34 MB, free: 5.766 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.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7732/0.7732, allocations: 122.9 MB / 414.1 MB, free: 15.79 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 67.25 kB / 0.5679 GB, free: 28.96 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1464/0.1476, allocations: 77.93 MB / 0.644 GB, free: 9.594 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.DC.Loads.Examples.Resistor): time 0.00546/0.1531, allocations: 3.815 MB / 0.6478 GB, free: 5.766 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002608/0.1558, allocations: 1.733 MB / 0.6495 GB, free: 4.023 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001525/0.1559, allocations: 7.938 kB / 0.6495 GB, free: 4.016 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001319/0.1573, allocations: 0.4927 MB / 0.6499 GB, free: 3.523 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000457/0.1577, allocations: 218.9 kB / 0.6502 GB, free: 3.309 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005075/0.1583, allocations: 211.5 kB / 0.6504 GB, free: 3.102 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004464/0.1587, allocations: 474.4 kB / 0.6508 GB, free: 2.637 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005161/0.1592, allocations: 361.4 kB / 0.6512 GB, free: 2.285 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002134/0.1595, allocations: 195.3 kB / 0.6513 GB, free: 2.094 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003447/0.1598, allocations: 219.1 kB / 0.6515 GB, free: 1.879 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.239e-05/0.1599, allocations: 28 kB / 0.6516 GB, free: 1.852 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003727/0.1602, allocations: 243.4 kB / 0.6518 GB, free: 1.613 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001188/0.1604, allocations: 127.7 kB / 0.6519 GB, free: 1.488 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001665/0.1605, allocations: 175.2 kB / 0.6521 GB, free: 1.316 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005565/0.1611, allocations: 0.5059 MB / 0.6526 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.1611, allocations: 0 / 0.6526 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1611, allocations: 0 / 0.6526 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.683e-06/0.1611, allocations: 0 / 0.6526 GB, free: 0.8086 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001004/0.1622, allocations: 0.6427 MB / 0.6532 GB, free: 116 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.1622, allocations: 12.62 kB / 0.6532 GB, free: 104 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.049e-05/0.1623, allocations: 70.72 kB / 0.6533 GB, free: 24 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000902/0.1632, allocations: 132.6 kB / 0.6534 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003907/0.1636, allocations: 299.8 kB / 0.6537 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.195e-05/0.1636, allocations: 25.03 kB / 0.6537 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.316e-05/0.1637, allocations: 32.38 kB / 0.6538 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006319/0.1643, allocations: 463.7 kB / 0.6542 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.1643, allocations: 4 kB / 0.6542 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.565e-05/0.1644, allocations: 16 kB / 0.6542 GB, free: 15 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.733e-05/0.1644, allocations: 28.55 kB / 0.6543 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004569/0.1649, allocations: 321.9 kB / 0.6546 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002051/0.167, allocations: 2.189 MB / 0.6567 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003553/0.1673, allocations: 255.8 kB / 0.6569 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000212/0.1676, allocations: 108.8 kB / 0.657 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.866e-06/0.1676, allocations: 0 / 0.657 GB, free: 11.87 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/0.1676, allocations: 38.5 kB / 0.6571 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=14): time 1.032e-06/0.1676, allocations: 96 / 0.6571 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14): time 0.0005678/0.1682, allocations: 305.2 kB / 0.6574 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.1682, allocations: 55.41 kB / 0.6574 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000247/0.1685, allocations: 270.6 kB / 0.6577 GB, free: 11.16 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.1685, allocations: 25.7 kB / 0.6577 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001166/0.1686, allocations: 204.3 kB / 0.6579 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 3.995e-05/0.1687, allocations: 59.52 kB / 0.658 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.478e-05/0.1688, allocations: 53.89 kB / 0.658 GB, free: 10.8 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.1689, allocations: 334.8 kB / 0.6583 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.859e-05/0.169, allocations: 56.38 kB / 0.6584 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.1691, allocations: 145.5 kB / 0.6585 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002432/0.1694, allocations: 222.9 kB / 0.6587 GB, free: 9.977 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1694, allocations: 3.938 kB / 0.6587 GB, free: 9.973 MB / 0.4981 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004015/0.1698, allocations: 257 kB / 0.659 GB, free: 9.715 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.325e-05/0.1698, allocations: 17.77 kB / 0.659 GB, free: 9.699 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.1698, allocations: 4 kB / 0.659 GB, free: 9.695 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001767/0.17, allocations: 28.78 kB / 0.659 GB, free: 9.664 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001892/0.1702, allocations: 47.98 kB / 0.6591 GB, free: 9.617 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001165/0.1714, allocations: 1.418 MB / 0.6605 GB, free: 8.055 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001784/0.1716, allocations: 27.78 kB / 0.6605 GB, free: 8.027 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.486e-05/0.1716, allocations: 8 kB / 0.6605 GB, free: 8.02 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * 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.0002073/0.1718, allocations: 174.6 kB / 0.6607 GB, free: 7.84 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.611e-05/0.1719, allocations: 23.86 kB / 0.6607 GB, free: 7.816 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.62e-05/0.172, allocations: 29.83 kB / 0.6607 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.434e-06/0.172, allocations: 0 / 0.6607 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.172, allocations: 0 / 0.6607 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.859e-06/0.172, allocations: 7.984 kB / 0.6607 GB, free: 7.781 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.173, allocations: 0.7026 MB / 0.6614 GB, free: 6.988 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.148e-06/0.173, allocations: 4 kB / 0.6614 GB, free: 6.984 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.615e-05/0.1731, allocations: 23.92 kB / 0.6614 GB, free: 6.961 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000107/0.1732, allocations: 32.97 kB / 0.6615 GB, free: 6.926 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.818e-05/0.1733, allocations: 8 kB / 0.6615 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001218/0.1745, allocations: 1.418 MB / 0.6629 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.1745, allocations: 0 / 0.6629 GB, free: 5.363 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003992/0.1749, allocations: 317.2 kB / 0.6632 GB, free: 5.016 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001245/0.1751, allocations: 121 kB / 0.6633 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.85e-05/0.1751, allocations: 3.938 kB / 0.6633 GB, free: 4.875 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.1753, allocations: 12 kB / 0.6633 GB, free: 4.863 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.322e-05/0.1753, allocations: 23.86 kB / 0.6633 GB, free: 4.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.1753, allocations: 8 kB / 0.6633 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002132/0.1756, allocations: 190 kB / 0.6635 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1756, allocations: 0 / 0.6635 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004435/0.176, allocations: 79.78 kB / 0.6636 GB, free: 4.57 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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.0005927/0.1766, allocations: 0.8508 MB / 0.6644 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00049/0.1771, allocations: 281 kB / 0.6647 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.1771, allocations: 0 / 0.6647 GB, free: 3.383 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000188/0.1773, allocations: 187.6 kB / 0.6649 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004661/0.1778, allocations: 57.66 kB / 0.6649 GB, free: 3.133 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003262/0.1811, allocations: 2.717 MB / 0.6676 GB, free: 220 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003745/0.1815, allocations: 0.787 MB / 0.6683 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001431/0.1816, allocations: 46.25 kB / 0.6684 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.1817, allocations: 83.55 kB / 0.6685 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of SimCode: time 5.21e-07/0.1817, allocations: 0 / 0.6685 GB, free: 15.28 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02392/0.2057, allocations: 5.378 MB / 0.6737 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.294/9.499, allocations: 6.094 kB / 0.6737 GB, free: 10.02 MB / 0.5137 GB (rm -f IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor_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_Loads_Examples_Resistor.fmu > IBPSA_latest_IBPSA.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)