Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_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.006331/0.006331, allocations: 101.5 kB / 15.73 MB, free: 6.449 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.00118/0.001181, allocations: 196.7 kB / 16.68 MB, free: 6.352 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.295/1.295, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002041/0.002041, allocations: 279 kB / 290.8 MB, free: 1.875 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9603/0.9603, allocations: 169.3 MB / 0.4983 GB, free: 13.77 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001676/0.001677, allocations: 92 kB / 0.681 GB, free: 15.93 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1494/0.1511, allocations: 86.98 MB / 0.7659 GB, free: 8.875 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.002656/0.1537, allocations: 1.822 MB / 0.7677 GB, free: 7.043 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0008631/0.1546, allocations: 0.5421 MB / 0.7682 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.752e-05/0.1547, allocations: 7.938 kB / 0.7682 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001235/0.1549, allocations: 23.73 kB / 0.7683 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 7.374e-05/0.1549, allocations: 27.73 kB / 0.7683 GB, free: 6.438 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001938/0.1551, allocations: 71.78 kB / 0.7684 GB, free: 6.367 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002073/0.1554, allocations: 171.5 kB / 0.7685 GB, free: 6.199 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.1555, allocations: 57.92 kB / 0.7686 GB, free: 6.141 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.482e-05/0.1556, allocations: 55.7 kB / 0.7686 GB, free: 6.086 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.786e-05/0.1557, allocations: 63.64 kB / 0.7687 GB, free: 6.023 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.266e-05/0.1557, allocations: 8 kB / 0.7687 GB, free: 6.016 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 1.854e-05/0.1557, allocations: 12 kB / 0.7687 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 3.313e-05/0.1558, allocations: 19.92 kB / 0.7687 GB, free: 5.984 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 6.777e-05/0.1558, allocations: 75.53 kB / 0.7688 GB, free: 5.91 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00018/0.156, allocations: 143.2 kB / 0.7689 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.156, allocations: 0 / 0.7689 GB, free: 5.77 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.502e-06/0.156, allocations: 3.938 kB / 0.7689 GB, free: 5.766 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.193e-05/0.1561, allocations: 0 / 0.7689 GB, free: 5.766 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0006979/0.1568, allocations: 482.5 kB / 0.7694 GB, free: 5.246 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.1568, allocations: 8.031 kB / 0.7694 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.374e-05/0.1568, allocations: 46.73 kB / 0.7694 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.927e-05/0.1569, allocations: 16.84 kB / 0.7695 GB, free: 5.168 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002775/0.1572, allocations: 232 kB / 0.7697 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.1572, allocations: 8.375 kB / 0.7697 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.744e-05/0.1572, allocations: 12.38 kB / 0.7697 GB, free: 4.883 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002737/0.1575, allocations: 150 kB / 0.7698 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.887e-06/0.1575, allocations: 0 / 0.7698 GB, free: 4.715 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.763e-05/0.1575, allocations: 11.98 kB / 0.7699 GB, free: 4.703 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.1576, allocations: 4 kB / 0.7699 GB, free: 4.699 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002219/0.1578, allocations: 71.78 kB / 0.7699 GB, free: 4.629 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008096/0.1586, allocations: 0.7434 MB / 0.7707 GB, free: 3.82 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001406/0.1588, allocations: 50.55 kB / 0.7707 GB, free: 3.762 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.1589, allocations: 32.84 kB / 0.7707 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.1589, allocations: 0 / 0.7707 GB, free: 3.727 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002216/0.1591, allocations: 130.5 kB / 0.7709 GB, free: 3.574 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/0.1591, allocations: 8 kB / 0.7709 GB, free: 3.566 MB / 0.5606 GB Notification: Performance of matching and sorting (n=11): time 0.0004491/0.1596, allocations: 157.5 kB / 0.771 GB, free: 3.406 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.437e-05/0.1597, allocations: 136.5 kB / 0.7712 GB, free: 3.242 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001673/0.1598, allocations: 195.2 kB / 0.7713 GB, free: 3.043 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.1599, allocations: 33.7 kB / 0.7714 GB, free: 3.004 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.725e-05/0.16, allocations: 140.1 kB / 0.7715 GB, free: 2.863 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.052e-05/0.16, allocations: 35.7 kB / 0.7715 GB, free: 2.828 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.324e-05/0.1601, allocations: 41.7 kB / 0.7716 GB, free: 2.781 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.1602, allocations: 330.8 kB / 0.7719 GB, free: 2.449 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001182/0.1603, allocations: 35.97 kB / 0.7719 GB, free: 2.414 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000183/0.1605, allocations: 152.2 kB / 0.7721 GB, free: 2.215 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002981/0.1608, allocations: 194.4 kB / 0.7723 GB, free: 1.973 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.1608, allocations: 8 kB / 0.7723 GB, free: 1.965 MB / 0.5606 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003824/0.1612, allocations: 209.6 kB / 0.7725 GB, free: 1.754 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.1612, allocations: 8 kB / 0.7725 GB, free: 1.746 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.1612, allocations: 4.031 kB / 0.7725 GB, free: 1.742 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.1613, allocations: 8 kB / 0.7725 GB, free: 1.734 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.1614, allocations: 31.92 kB / 0.7725 GB, free: 1.703 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.1614, allocations: 7.984 kB / 0.7725 GB, free: 1.695 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001404/0.1616, allocations: 28.11 kB / 0.7725 GB, free: 1.668 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/0.1616, allocations: 8 kB / 0.7726 GB, free: 1.66 MB / 0.5606 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.0001114/0.1617, allocations: 147.7 kB / 0.7727 GB, free: 1.508 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.777e-05/0.1617, allocations: 19.91 kB / 0.7727 GB, free: 1.488 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.238e-05/0.1618, allocations: 25.33 kB / 0.7727 GB, free: 1.461 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.928e-06/0.1618, allocations: 4 kB / 0.7727 GB, free: 1.457 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/0.1618, allocations: 0 / 0.7727 GB, free: 1.457 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1618, allocations: 0 / 0.7727 GB, free: 1.457 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007357/0.1625, allocations: 0.5209 MB / 0.7733 GB, free: 0.8789 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.1626, allocations: 4 kB / 0.7733 GB, free: 0.875 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000117/0.1627, allocations: 15.98 kB / 0.7733 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.1627, allocations: 0 / 0.7733 GB, free: 0.8594 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.526e-05/0.1627, allocations: 8 kB / 0.7733 GB, free: 0.8516 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.1627, allocations: 4.25 kB / 0.7733 GB, free: 0.8477 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1627, allocations: 4 kB / 0.7733 GB, free: 0.8438 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004863/0.1632, allocations: 360.3 kB / 0.7736 GB, free: 480 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.307e-05/0.1633, allocations: 93.05 kB / 0.7737 GB, free: 368 kB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.986e-05/0.1633, allocations: 8 kB / 0.7737 GB, free: 360 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001668/0.1635, allocations: 11.92 kB / 0.7737 GB, free: 348 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.656e-05/0.1635, allocations: 15.98 kB / 0.7738 GB, free: 332 kB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.1636, allocations: 8 kB / 0.7738 GB, free: 324 kB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001178/0.1637, allocations: 145 kB / 0.7739 GB, free: 180 kB / 0.5606 GB Notification: Performance of sort global known variables: time 1.383e-06/0.1637, allocations: 0 / 0.7739 GB, free: 180 kB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003276/0.164, allocations: 35.92 kB / 0.7739 GB, free: 144 kB / 0.5606 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.3472/0.5113, allocations: 0.8839 MB / 0.7748 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0003902/0.5117, allocations: 121.3 kB / 0.7749 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/0.5117, allocations: 1.312 kB / 0.7749 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.00015/0.5119, allocations: 49.64 kB / 0.775 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006935/0.5126, allocations: 60.17 kB / 0.775 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002184/0.5148, allocations: 2.271 MB / 0.7772 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001413/0.5149, allocations: 0.7239 MB / 0.7779 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.66e-05/0.515, allocations: 22.14 kB / 0.778 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.301e-05/0.5151, allocations: 51.41 kB / 0.778 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of SimCode: time 7.11e-07/0.5151, allocations: 3.938 kB / 0.778 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02129/0.5364, allocations: 4.051 MB / 0.782 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.746/8.282, allocations: 13.42 kB / 0.782 GB, free: 11.17 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)