Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.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.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_IntegratorWithReset",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.001239/0.001239, allocations: 112 kB / 16.4 MB, free: 6.379 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.001233/0.001233, allocations: 196 kB / 17.33 MB, free: 5.844 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.435/1.435, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.826/0.826, allocations: 126.7 MB / 417.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 69.08 kB / 0.5735 GB, free: 26.96 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1597/0.1616, allocations: 78.85 MB / 0.6505 GB, free: 3.598 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.004081/0.1658, allocations: 1.815 MB / 0.6523 GB, free: 1.773 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001394/0.1672, allocations: 0.5376 MB / 0.6528 GB, free: 1.23 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002379/0.1675, allocations: 11.94 kB / 0.6529 GB, free: 1.219 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000207/0.1677, allocations: 31.72 kB / 0.6529 GB, free: 1.188 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001431/0.1679, allocations: 15.75 kB / 0.6529 GB, free: 1.172 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003421/0.1682, allocations: 75.84 kB / 0.653 GB, free: 1.098 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003455/0.1686, allocations: 167.5 kB / 0.6531 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002007/0.1688, allocations: 53.64 kB / 0.6532 GB, free: 0.8828 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00014/0.1689, allocations: 51.72 kB / 0.6532 GB, free: 0.832 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.1691, allocations: 63.64 kB / 0.6533 GB, free: 0.7695 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.269e-05/0.1691, allocations: 8 kB / 0.6533 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.721e-05/0.1691, allocations: 12 kB / 0.6533 GB, free: 0.75 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.728e-05/0.1692, allocations: 27.91 kB / 0.6533 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 9.821e-05/0.1693, allocations: 67.55 kB / 0.6534 GB, free: 0.6562 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002778/0.1696, allocations: 135.5 kB / 0.6535 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.1696, allocations: 0 / 0.6535 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.1696, allocations: 4 kB / 0.6535 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.1696, allocations: 0 / 0.6535 GB, free: 0.5195 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008384/0.1705, allocations: 478.5 kB / 0.654 GB, free: 4 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.977e-05/0.1705, allocations: 12.14 kB / 0.654 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.978e-05/0.1706, allocations: 46.67 kB / 0.654 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.419e-05/0.1707, allocations: 20.84 kB / 0.6541 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004008/0.1711, allocations: 236 kB / 0.6543 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.1711, allocations: 8.234 kB / 0.6543 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.896e-05/0.1712, allocations: 16.38 kB / 0.6543 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003481/0.1715, allocations: 149.1 kB / 0.6545 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.1715, allocations: 4 kB / 0.6545 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.926e-05/0.1716, allocations: 8 kB / 0.6545 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.775e-06/0.1716, allocations: 4 kB / 0.6545 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002398/0.1718, allocations: 71.83 kB / 0.6545 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001075/0.1729, allocations: 0.7393 MB / 0.6553 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001744/0.1731, allocations: 42.55 kB / 0.6553 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001175/0.1732, allocations: 32.84 kB / 0.6553 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.329e-05/0.1733, allocations: 11.98 kB / 0.6553 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003053/0.1736, allocations: 126.7 kB / 0.6555 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=11): time 1.563e-06/0.1736, allocations: 0 / 0.6555 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of matching and sorting (n=11): time 0.0005655/0.1741, allocations: 165.8 kB / 0.6556 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001181/0.1743, allocations: 136.5 kB / 0.6558 GB, free: 13.99 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002416/0.1745, allocations: 206.7 kB / 0.656 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/0.1746, allocations: 25.7 kB / 0.656 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/0.1747, allocations: 140.1 kB / 0.6561 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 4.245e-05/0.1748, allocations: 31.7 kB / 0.6561 GB, free: 13.57 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.991e-05/0.1748, allocations: 37.77 kB / 0.6562 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001782/0.175, allocations: 338.8 kB / 0.6565 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001274/0.1751, allocations: 39.97 kB / 0.6565 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.1754, allocations: 151.2 kB / 0.6567 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000356/0.1758, allocations: 202.4 kB / 0.6569 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1758, allocations: 0 / 0.6569 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004341/0.1762, allocations: 209.1 kB / 0.6571 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.1762, allocations: 6.031 kB / 0.6571 GB, free: 12.49 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.1762, allocations: 4 kB / 0.6571 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/0.1763, allocations: 8.5 kB / 0.6571 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001378/0.1764, allocations: 43.91 kB / 0.6571 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.1764, allocations: 4 kB / 0.6571 GB, free: 12.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001485/0.1766, allocations: 23.88 kB / 0.6572 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.655e-05/0.1766, allocations: 12 kB / 0.6572 GB, free: 12.39 MB / 0.4981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 prepare postOptimizeDAE: time 0.000127/0.1767, allocations: 133.7 kB / 0.6573 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.187e-05/0.1768, allocations: 19.89 kB / 0.6573 GB, free: 12.23 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.39e-05/0.1768, allocations: 17.41 kB / 0.6573 GB, free: 12.22 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.1769, allocations: 4 kB / 0.6573 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.1769, allocations: 4 kB / 0.6573 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.1769, allocations: 0 / 0.6573 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008116/0.1777, allocations: 0.5209 MB / 0.6579 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.1777, allocations: 4 kB / 0.6579 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001148/0.1778, allocations: 23.92 kB / 0.6579 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.1778, allocations: 0 / 0.6579 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.952e-05/0.1779, allocations: 12.3 kB / 0.6579 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.1779, allocations: 3.938 kB / 0.6579 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.1779, allocations: 4 kB / 0.6579 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005597/0.1785, allocations: 360.3 kB / 0.6582 GB, free: 11.21 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.231e-05/0.1785, allocations: 89.02 kB / 0.6583 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.783e-05/0.1786, allocations: 4 kB / 0.6583 GB, free: 11.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001663/0.1787, allocations: 15.97 kB / 0.6583 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.785e-05/0.1788, allocations: 15.98 kB / 0.6584 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.1788, allocations: 7.984 kB / 0.6584 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001313/0.179, allocations: 144.3 kB / 0.6585 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.179, allocations: 4 kB / 0.6585 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003206/0.1793, allocations: 28 kB / 0.6585 GB, free: 10.89 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0009304/0.1802, allocations: 0.9083 MB / 0.6594 GB, free: 9.949 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003422/0.1806, allocations: 112.6 kB / 0.6595 GB, free: 9.84 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.1806, allocations: 4 kB / 0.6595 GB, free: 9.836 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001443/0.1808, allocations: 48.11 kB / 0.6596 GB, free: 9.789 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005754/0.1813, allocations: 72.38 kB / 0.6596 GB, free: 9.723 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002759/0.1841, allocations: 2.255 MB / 0.6619 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003484/0.1845, allocations: 0.7203 MB / 0.6626 GB, free: 6.523 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 8.171e-05/0.1846, allocations: 21.67 kB / 0.6626 GB, free: 6.504 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.384e-05/0.1847, allocations: 47.42 kB / 0.6626 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of SimCode: time 4.11e-07/0.1847, allocations: 0 / 0.6626 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02742/0.2121, allocations: 4.014 MB / 0.6665 GB, free: 2.551 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.225/8.437, allocations: 12.27 kB / 0.6666 GB, free: 2.543 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset_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_Utilities_Math_Examples_IntegratorWithReset.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)