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.001309/0.001309, allocations: 103.8 kB / 16.4 MB, free: 6.508 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.001306/0.001306, allocations: 189.2 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.426/1.426, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8408/0.8408, allocations: 126.7 MB / 417.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001925/0.001925, allocations: 71.88 kB / 0.5735 GB, free: 27.04 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1514/0.1534, allocations: 78.87 MB / 0.6505 GB, free: 3.637 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Electrical.DC.Loads.Examples.Resistor): time 0.00604/0.1595, allocations: 3.816 MB / 0.6543 GB, free: 15.8 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.003239/0.1628, allocations: 1.741 MB / 0.656 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001976/0.163, allocations: 8 kB / 0.656 GB, free: 14.04 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001403/0.1645, allocations: 0.4924 MB / 0.6565 GB, free: 13.55 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0006055/0.1651, allocations: 210.9 kB / 0.6567 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005687/0.1657, allocations: 207.5 kB / 0.6569 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0005739/0.1662, allocations: 482.3 kB / 0.6573 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006095/0.1669, allocations: 361.4 kB / 0.6577 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002226/0.1671, allocations: 191.2 kB / 0.6578 GB, free: 12.12 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003971/0.1675, allocations: 215.2 kB / 0.658 GB, free: 11.91 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.307e-05/0.1676, allocations: 32 kB / 0.6581 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004402/0.168, allocations: 247.4 kB / 0.6583 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001379/0.1682, allocations: 127.7 kB / 0.6584 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001808/0.1684, allocations: 171.2 kB / 0.6586 GB, free: 11.35 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0006991/0.1691, allocations: 0.5059 MB / 0.6591 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1691, allocations: 0 / 0.6591 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.743e-06/0.1691, allocations: 0 / 0.6591 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.584e-06/0.1691, allocations: 0 / 0.6591 GB, free: 10.84 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001076/0.1702, allocations: 0.6388 MB / 0.6597 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.1702, allocations: 19.91 kB / 0.6597 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.82e-05/0.1703, allocations: 66.72 kB / 0.6598 GB, free: 10.06 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009291/0.1713, allocations: 132.6 kB / 0.6599 GB, free: 9.93 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004229/0.1717, allocations: 303.8 kB / 0.6602 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/0.1717, allocations: 21.03 kB / 0.6602 GB, free: 9.574 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.666e-05/0.1718, allocations: 32.36 kB / 0.6603 GB, free: 9.543 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007333/0.1725, allocations: 459.7 kB / 0.6607 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.385e-05/0.1726, allocations: 0 / 0.6607 GB, free: 9.055 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.64e-05/0.1726, allocations: 19.97 kB / 0.6607 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.066e-05/0.1727, allocations: 32.55 kB / 0.6608 GB, free: 9.004 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005431/0.1732, allocations: 321.9 kB / 0.6611 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00255/0.1758, allocations: 2.185 MB / 0.6632 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004306/0.1762, allocations: 255.8 kB / 0.6634 GB, free: 6.016 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002441/0.1765, allocations: 108.8 kB / 0.6635 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.113e-05/0.1765, allocations: 0 / 0.6635 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.184e-05/0.1765, allocations: 30.56 kB / 0.6636 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=14): time 1.222e-06/0.1765, allocations: 0 / 0.6636 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of matching and sorting (n=14): time 0.0006626/0.1772, allocations: 314.4 kB / 0.6639 GB, free: 5.535 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.92e-05/0.1773, allocations: 51.41 kB / 0.6639 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003084/0.1776, allocations: 266.6 kB / 0.6642 GB, free: 5.207 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.1776, allocations: 29.7 kB / 0.6642 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/0.1778, allocations: 208.3 kB / 0.6644 GB, free: 4.965 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.814e-05/0.1778, allocations: 55.53 kB / 0.6645 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.501e-05/0.1779, allocations: 49.89 kB / 0.6645 GB, free: 4.852 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001762/0.1781, allocations: 338.8 kB / 0.6648 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001059/0.1782, allocations: 60.42 kB / 0.6649 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00019/0.1784, allocations: 132.8 kB / 0.665 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002949/0.1787, allocations: 222.5 kB / 0.6652 GB, free: 4.031 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.1787, allocations: 4 kB / 0.6652 GB, free: 4.027 MB / 0.4981 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0004538/0.1792, allocations: 270 kB / 0.6655 GB, free: 3.754 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.1792, allocations: 13.81 kB / 0.6655 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.294e-06/0.1793, allocations: 0 / 0.6655 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001906/0.1794, allocations: 24.84 kB / 0.6655 GB, free: 3.715 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002026/0.1797, allocations: 52.28 kB / 0.6656 GB, free: 3.664 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001315/0.181, allocations: 1.43 MB / 0.667 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001679/0.1812, allocations: 27.78 kB / 0.667 GB, free: 2.062 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.735e-05/0.1812, allocations: 8 kB / 0.667 GB, free: 2.055 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.0001932/0.1814, allocations: 169.7 kB / 0.6672 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.154e-05/0.1815, allocations: 23.86 kB / 0.6672 GB, free: 1.855 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.984e-05/0.1815, allocations: 29.83 kB / 0.6672 GB, free: 1.828 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.1815, allocations: 96 / 0.6672 GB, free: 1.828 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1815, allocations: 3.938 kB / 0.6672 GB, free: 1.824 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.1815, allocations: 4.062 kB / 0.6672 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009693/0.1825, allocations: 0.7063 MB / 0.6679 GB, free: 1.023 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/0.1825, allocations: 4.188 kB / 0.6679 GB, free: 1.02 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.335e-05/0.1826, allocations: 20 kB / 0.6679 GB, free: 1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.067e-05/0.1827, allocations: 28.78 kB / 0.668 GB, free: 0.9688 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.978e-05/0.1827, allocations: 11.98 kB / 0.668 GB, free: 0.957 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001185/0.1839, allocations: 1.414 MB / 0.6694 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.184, allocations: 0 / 0.6694 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003747/0.1843, allocations: 313.3 kB / 0.6697 GB, free: 15.06 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001249/0.1845, allocations: 116.9 kB / 0.6698 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.101e-05/0.1845, allocations: 4 kB / 0.6698 GB, free: 14.92 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.1847, allocations: 19.94 kB / 0.6698 GB, free: 14.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.069e-05/0.1847, allocations: 11.92 kB / 0.6698 GB, free: 14.89 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.601e-05/0.1847, allocations: 12 kB / 0.6698 GB, free: 14.88 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002029/0.1849, allocations: 190 kB / 0.67 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.81e-07/0.185, allocations: 0 / 0.67 GB, free: 14.7 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0004154/0.1854, allocations: 79.78 kB / 0.6701 GB, free: 14.62 MB / 0.5137 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.0007108/0.1861, allocations: 0.8625 MB / 0.6709 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0005273/0.1866, allocations: 273.2 kB / 0.6712 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.1866, allocations: 0.75 kB / 0.6712 GB, free: 13.43 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0002269/0.1869, allocations: 182.8 kB / 0.6713 GB, free: 13.23 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004725/0.1874, allocations: 64.73 kB / 0.6714 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00332/0.1907, allocations: 2.71 MB / 0.6741 GB, free: 10.27 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005401/0.1913, allocations: 0.7909 MB / 0.6748 GB, free: 9.449 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000159/0.1914, allocations: 42.25 kB / 0.6749 GB, free: 9.41 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001249/0.1916, allocations: 87.41 kB / 0.6749 GB, free: 9.324 MB / 0.5137 GB Notification: Performance of SimCode: time 5.51e-07/0.1916, allocations: 0 / 0.6749 GB, free: 9.324 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03237/0.2239, allocations: 5.382 MB / 0.6802 GB, free: 4.062 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.717/9.941, allocations: 4.594 kB / 0.6802 GB, free: 4.059 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)