Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildSysPro_BuildSysPro_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.006524/0.006524, allocations: 99.45 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.001327/0.001327, allocations: 193.8 kB / 16.67 MB, free: 5.969 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.8795/0.8795, allocations: 143.1 MB / 433.6 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 67.31 kB / 0.5951 GB, free: 12.77 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1534/0.1547, allocations: 82.03 MB / 0.6752 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset): time 0.003163/0.1579, allocations: 1.825 MB / 0.677 GB, free: 9.02 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001026/0.1589, allocations: 0.5338 MB / 0.6775 GB, free: 8.48 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001351/0.1591, allocations: 11.94 kB / 0.6775 GB, free: 8.469 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001433/0.1592, allocations: 23.73 kB / 0.6775 GB, free: 8.445 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 9.103e-05/0.1593, allocations: 23.73 kB / 0.6775 GB, free: 8.422 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002262/0.1596, allocations: 67.91 kB / 0.6776 GB, free: 8.355 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002373/0.1598, allocations: 171.4 kB / 0.6778 GB, free: 8.188 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001406/0.16, allocations: 53.64 kB / 0.6778 GB, free: 8.137 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 9.932e-05/0.1601, allocations: 55.78 kB / 0.6779 GB, free: 8.082 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 7.991e-05/0.1602, allocations: 55.64 kB / 0.6779 GB, free: 8.027 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 2.904e-05/0.1602, allocations: 12 kB / 0.6779 GB, free: 8.016 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 1.988e-05/0.1602, allocations: 8 kB / 0.6779 GB, free: 8.008 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 3.934e-05/0.1603, allocations: 27.86 kB / 0.678 GB, free: 7.98 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 6.773e-05/0.1603, allocations: 71.58 kB / 0.678 GB, free: 7.91 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0001882/0.1605, allocations: 139.5 kB / 0.6782 GB, free: 7.773 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1605, allocations: 0 / 0.6782 GB, free: 7.773 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.432e-06/0.1606, allocations: 4 kB / 0.6782 GB, free: 7.77 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.302e-06/0.1606, allocations: 0 / 0.6782 GB, free: 7.77 MB / 0.5137 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.0006946/0.1613, allocations: 482.5 kB / 0.6786 GB, free: 7.25 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.1613, allocations: 15.91 kB / 0.6786 GB, free: 7.234 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.812e-05/0.1614, allocations: 42.73 kB / 0.6787 GB, free: 7.184 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.501e-05/0.1614, allocations: 16.84 kB / 0.6787 GB, free: 7.168 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003234/0.1617, allocations: 236 kB / 0.6789 GB, free: 6.898 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.1618, allocations: 12.38 kB / 0.6789 GB, free: 6.887 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.081e-05/0.1618, allocations: 12.38 kB / 0.6789 GB, free: 6.875 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002893/0.1621, allocations: 150.8 kB / 0.6791 GB, free: 6.707 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.188e-06/0.1621, allocations: 4 kB / 0.6791 GB, free: 6.703 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.1621, allocations: 3.984 kB / 0.6791 GB, free: 6.699 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.1621, allocations: 4 kB / 0.6791 GB, free: 6.695 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002291/0.1624, allocations: 71.88 kB / 0.6792 GB, free: 6.625 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008723/0.1633, allocations: 0.7472 MB / 0.6799 GB, free: 5.812 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001427/0.1634, allocations: 46.55 kB / 0.6799 GB, free: 5.758 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.1635, allocations: 36.84 kB / 0.68 GB, free: 5.719 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.1636, allocations: 4.156 kB / 0.68 GB, free: 5.715 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002381/0.1638, allocations: 130.6 kB / 0.6801 GB, free: 5.562 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=11): time 1.693e-06/0.1638, allocations: 0 / 0.6801 GB, free: 5.562 MB / 0.5137 GB Notification: Performance of matching and sorting (n=11): time 0.000487/0.1643, allocations: 161.6 kB / 0.6803 GB, free: 5.398 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.317e-05/0.1644, allocations: 136.5 kB / 0.6804 GB, free: 5.234 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001742/0.1646, allocations: 199 kB / 0.6806 GB, free: 5.027 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.207e-05/0.1646, allocations: 33.7 kB / 0.6806 GB, free: 4.988 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 8.043e-05/0.1647, allocations: 128 kB / 0.6807 GB, free: 4.859 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 3.331e-05/0.1647, allocations: 35.75 kB / 0.6808 GB, free: 4.824 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.213e-05/0.1648, allocations: 45.7 kB / 0.6808 GB, free: 4.773 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001077/0.1649, allocations: 334.9 kB / 0.6811 GB, free: 4.438 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001253/0.165, allocations: 35.97 kB / 0.6812 GB, free: 4.402 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.1652, allocations: 144.8 kB / 0.6813 GB, free: 4.211 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003066/0.1655, allocations: 202.2 kB / 0.6815 GB, free: 3.961 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.1656, allocations: 4 kB / 0.6815 GB, free: 3.957 MB / 0.5137 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004765/0.166, allocations: 213.1 kB / 0.6817 GB, free: 3.742 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.687e-05/0.1661, allocations: 8 kB / 0.6817 GB, free: 3.734 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.1661, allocations: 4 kB / 0.6817 GB, free: 3.73 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.1661, allocations: 4 kB / 0.6817 GB, free: 3.727 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001288/0.1662, allocations: 32.42 kB / 0.6818 GB, free: 3.695 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.1663, allocations: 11.98 kB / 0.6818 GB, free: 3.684 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001506/0.1664, allocations: 27.88 kB / 0.6818 GB, free: 3.656 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.1664, allocations: 8 kB / 0.6818 GB, free: 3.648 MB / 0.5137 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.0001083/0.1665, allocations: 139.5 kB / 0.6819 GB, free: 3.504 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.708e-05/0.1666, allocations: 15.91 kB / 0.6819 GB, free: 3.488 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.326e-05/0.1666, allocations: 21.39 kB / 0.682 GB, free: 3.465 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.1666, allocations: 4 kB / 0.682 GB, free: 3.461 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.1666, allocations: 0 / 0.682 GB, free: 3.461 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.02e-06/0.1667, allocations: 8 kB / 0.682 GB, free: 3.453 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007463/0.1674, allocations: 0.517 MB / 0.6825 GB, free: 2.879 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.1674, allocations: 0 / 0.6825 GB, free: 2.879 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001191/0.1675, allocations: 15.98 kB / 0.6825 GB, free: 2.863 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.1676, allocations: 0 / 0.6825 GB, free: 2.863 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/0.1676, allocations: 12 kB / 0.6825 GB, free: 2.852 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.1676, allocations: 3.938 kB / 0.6825 GB, free: 2.848 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.1676, allocations: 4.594 kB / 0.6825 GB, free: 2.844 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005032/0.1681, allocations: 368.2 kB / 0.6829 GB, free: 2.461 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.362e-05/0.1682, allocations: 97.05 kB / 0.683 GB, free: 2.348 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.737e-05/0.1682, allocations: 4 kB / 0.683 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.1684, allocations: 23.86 kB / 0.683 GB, free: 2.32 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.208e-05/0.1684, allocations: 11.98 kB / 0.683 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.688e-06/0.1685, allocations: 4 kB / 0.683 GB, free: 2.305 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001027/0.1686, allocations: 136.6 kB / 0.6831 GB, free: 2.172 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1686, allocations: 4 kB / 0.6831 GB, free: 2.168 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000343/0.1689, allocations: 31.98 kB / 0.6832 GB, free: 2.137 MB / 0.5137 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.000773/0.1697, allocations: 0.9083 MB / 0.6841 GB, free: 1.195 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.000329/0.17, allocations: 108.7 kB / 0.6842 GB, free: 1.09 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1701, allocations: 3.938 kB / 0.6842 GB, free: 1.086 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001463/0.1702, allocations: 52.03 kB / 0.6842 GB, free: 1.035 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005671/0.1708, allocations: 69.66 kB / 0.6843 GB, free: 0.9727 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002748/0.1735, allocations: 2.273 MB / 0.6865 GB, free: 14.51 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003205/0.1739, allocations: 0.7241 MB / 0.6872 GB, free: 13.76 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 9.745e-05/0.174, allocations: 17.67 kB / 0.6872 GB, free: 13.74 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.27e-05/0.1741, allocations: 55.42 kB / 0.6873 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of SimCode: time 9.72e-07/0.1741, allocations: 0 / 0.6873 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02113/0.1952, allocations: 4.032 MB / 0.6912 GB, free: 9.781 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.841/8.037, allocations: 16.88 kB / 0.6912 GB, free: 9.77 MB / 0.5294 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file BuildSysPro_BuildSysPro.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 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_IntegratorWithReset.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1)