Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Controls.Continuous.Examples.OffTimer,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_OffTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Controls.Continuous.Examples.OffTimer,fileNamePrefix="BuildingSystems_BuildingSystems_Controls_Continuous_Examples_OffTimer",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.005798/0.005798, allocations: 97.62 kB / 15.73 MB, free: 6.059 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.001624/0.001624, allocations: 197.5 kB / 16.68 MB, free: 5.977 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.447/1.447, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002573/0.002573, allocations: 287 kB / 290.8 MB, free: 1.934 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.046/1.046, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002783/0.002783, allocations: 103.8 kB / 0.6809 GB, free: 24 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1606/0.1634, allocations: 86.97 MB / 0.7659 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.OffTimer): time 0.002957/0.1664, allocations: 1.467 MB / 0.7673 GB, free: 7.496 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008275/0.1672, allocations: 435.4 kB / 0.7677 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.839e-05/0.1673, allocations: 0 / 0.7677 GB, free: 7.066 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.666e-05/0.1673, allocations: 3.938 kB / 0.7677 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.439e-05/0.1674, allocations: 11.92 kB / 0.7677 GB, free: 7.051 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001296/0.1675, allocations: 27.91 kB / 0.7678 GB, free: 7.023 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.932e-05/0.1676, allocations: 47.91 kB / 0.7678 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.116e-05/0.1677, allocations: 12 kB / 0.7678 GB, free: 6.965 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.184e-05/0.1678, allocations: 23.92 kB / 0.7678 GB, free: 6.941 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.531e-05/0.1678, allocations: 19.91 kB / 0.7679 GB, free: 6.922 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.759e-05/0.1678, allocations: 4 kB / 0.7679 GB, free: 6.918 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 1.195e-05/0.1679, allocations: 4 kB / 0.7679 GB, free: 6.914 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.883e-05/0.1679, allocations: 19.86 kB / 0.7679 GB, free: 6.895 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 4.993e-05/0.168, allocations: 23.92 kB / 0.7679 GB, free: 6.871 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001003/0.1681, allocations: 44.05 kB / 0.7679 GB, free: 6.828 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1681, allocations: 4 kB / 0.768 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.079e-05/0.1681, allocations: 0 / 0.768 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 9.438e-06/0.1681, allocations: 4 kB / 0.768 GB, free: 6.82 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005226/0.1686, allocations: 355.4 kB / 0.7683 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.1687, allocations: 8.031 kB / 0.7683 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.783e-05/0.1687, allocations: 38.73 kB / 0.7683 GB, free: 6.371 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.632e-05/0.1688, allocations: 8.891 kB / 0.7683 GB, free: 6.363 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001758/0.1689, allocations: 172.3 kB / 0.7685 GB, free: 6.156 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.169, allocations: 8.375 kB / 0.7685 GB, free: 6.148 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.683e-05/0.169, allocations: 4.375 kB / 0.7685 GB, free: 6.145 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.1691, allocations: 61.73 kB / 0.7686 GB, free: 6.078 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.1691, allocations: 0 / 0.7686 GB, free: 6.078 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.1691, allocations: 7.938 kB / 0.7686 GB, free: 6.07 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.1692, allocations: 4 kB / 0.7686 GB, free: 6.066 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.348e-05/0.1692, allocations: 19.98 kB / 0.7686 GB, free: 6.047 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005269/0.1698, allocations: 312.7 kB / 0.7689 GB, free: 5.691 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001134/0.1699, allocations: 50.56 kB / 0.769 GB, free: 5.633 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.776e-05/0.1699, allocations: 24.95 kB / 0.769 GB, free: 5.605 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.334e-05/0.17, allocations: 3.984 kB / 0.769 GB, free: 5.602 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001543/0.1701, allocations: 71.42 kB / 0.7691 GB, free: 5.52 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=9): time 1.704e-06/0.1701, allocations: 4 kB / 0.7691 GB, free: 5.516 MB / 0.5606 GB Notification: Performance of matching and sorting (n=9): time 0.00023/0.1704, allocations: 101.6 kB / 0.7692 GB, free: 5.41 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.476e-05/0.1704, allocations: 55.41 kB / 0.7692 GB, free: 5.344 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.1705, allocations: 109.8 kB / 0.7693 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 2.006e-05/0.1706, allocations: 25.7 kB / 0.7693 GB, free: 5.195 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.507e-05/0.1706, allocations: 88.09 kB / 0.7694 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.602e-05/0.1706, allocations: 23.8 kB / 0.7694 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.234e-05/0.1707, allocations: 29.64 kB / 0.7695 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001543/0.1709, allocations: 330.8 kB / 0.7698 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.64e-05/0.1709, allocations: 12 kB / 0.7698 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.221e-05/0.171, allocations: 47.42 kB / 0.7698 GB, free: 4.645 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.477e-05/0.1711, allocations: 63.36 kB / 0.7699 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1711, allocations: 4 kB / 0.7699 GB, free: 4.566 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000161/0.1713, allocations: 93.8 kB / 0.77 GB, free: 4.469 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.1713, allocations: 6.344 kB / 0.77 GB, free: 4.465 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.1713, allocations: 3.984 kB / 0.77 GB, free: 4.461 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.1713, allocations: 4.047 kB / 0.77 GB, free: 4.457 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.977e-05/0.1714, allocations: 15.98 kB / 0.77 GB, free: 4.441 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.1714, allocations: 3.984 kB / 0.77 GB, free: 4.438 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.322e-05/0.1715, allocations: 16.38 kB / 0.77 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.1715, allocations: 7.938 kB / 0.7701 GB, free: 4.414 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,not1.y,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition2,$whenCondition3,offTim1.entryTime,$PRE.offTim1.entryTime,offTim2.entryTime,$PRE.offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.0001019/0.1716, allocations: 126 kB / 0.7702 GB, free: 4.285 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.259e-05/0.1716, allocations: 8 kB / 0.7702 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.314e-05/0.1716, allocations: 7.906 kB / 0.7702 GB, free: 4.27 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.684e-06/0.1717, allocations: 4 kB / 0.7702 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.1717, allocations: 0 / 0.7702 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1717, allocations: 0 / 0.7702 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004626/0.1721, allocations: 370.3 kB / 0.7705 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-06/0.1722, allocations: 0 / 0.7705 GB, free: 3.848 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.813e-05/0.1722, allocations: 4 kB / 0.7705 GB, free: 3.844 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.1722, allocations: 4 kB / 0.7706 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.1722, allocations: 0 / 0.7706 GB, free: 3.84 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.426e-06/0.1722, allocations: 7.938 kB / 0.7706 GB, free: 3.832 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1722, allocations: 0 / 0.7706 GB, free: 3.832 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001864/0.1724, allocations: 179.5 kB / 0.7707 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.379e-05/0.1725, allocations: 81.06 kB / 0.7708 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.857e-05/0.1725, allocations: 4 kB / 0.7708 GB, free: 3.539 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.815e-05/0.1726, allocations: 11.86 kB / 0.7708 GB, free: 3.527 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.43e-05/0.1726, allocations: 15.98 kB / 0.7708 GB, free: 3.512 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.254e-06/0.1727, allocations: 4 kB / 0.7708 GB, free: 3.508 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 5.217e-05/0.1727, allocations: 87.22 kB / 0.7709 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1727, allocations: 0 / 0.7709 GB, free: 3.422 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002404/0.173, allocations: 12 kB / 0.7709 GB, free: 3.41 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (not1.y,$whenCondition3,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,offTim1.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0005127/0.1735, allocations: 0.7205 MB / 0.7716 GB, free: 2.664 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001476/0.1736, allocations: 55.84 kB / 0.7717 GB, free: 2.609 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1737, allocations: 0 / 0.7717 GB, free: 2.609 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 5.772e-05/0.1737, allocations: 31.94 kB / 0.7717 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002673/0.174, allocations: 11.92 kB / 0.7717 GB, free: 2.566 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001442/0.1754, allocations: 1.377 MB / 0.7731 GB, free: 1.094 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/0.1758, allocations: 0.6885 MB / 0.7738 GB, free: 388 kB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.721e-05/0.1758, allocations: 4 kB / 0.7738 GB, free: 384 kB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.606e-05/0.1759, allocations: 19.44 kB / 0.7738 GB, free: 364 kB / 0.5606 GB Notification: Performance of SimCode: time 3.797e-06/0.1759, allocations: 0 / 0.7738 GB, free: 364 kB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3004/0.4763, allocations: 1.765 MB / 0.7755 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.812/8.288, allocations: 9.766 kB / 0.7755 GB, free: 13.98 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Controls_Continuous_Examples_OffTimer.fmu > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.OffTimer.pipe 2>&1)