Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001828/0.001828, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002303/0.002303, allocations: 216.9 kB / 22.25 MB, free: 4.855 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.53/1.53, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8508/0.8508, allocations: 134 MB / 446.4 MB, free: 9.938 MB / 350.1 MB " [Timeout remaining time 179] Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002002/0.002002, allocations: 67.92 kB / 0.6185 GB, free: 6.859 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1574/0.1594, allocations: 85.91 MB / 0.7024 GB, free: 1.035 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.003198/0.1626, allocations: 1.783 MB / 0.7041 GB, free: 15.24 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001132/0.1638, allocations: 0.5455 MB / 0.7047 GB, free: 14.69 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.1639, allocations: 11.88 kB / 0.7047 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001411/0.164, allocations: 23.73 kB / 0.7047 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 8.296e-05/0.1641, allocations: 31.72 kB / 0.7047 GB, free: 14.62 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002164/0.1643, allocations: 63.92 kB / 0.7048 GB, free: 14.56 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002538/0.1646, allocations: 175.4 kB / 0.7049 GB, free: 14.39 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001489/0.1647, allocations: 38.02 kB / 0.705 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.1648, allocations: 59.78 kB / 0.705 GB, free: 14.3 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 8.554e-05/0.1649, allocations: 59.56 kB / 0.7051 GB, free: 14.24 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.522e-05/0.1649, allocations: 8 kB / 0.7051 GB, free: 14.23 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 2.597e-05/0.165, allocations: 12 kB / 0.7051 GB, free: 14.22 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.469e-05/0.165, allocations: 23.92 kB / 0.7051 GB, free: 14.2 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 6.449e-05/0.1651, allocations: 51.67 kB / 0.7052 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002013/0.1653, allocations: 135.3 kB / 0.7053 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.1653, allocations: 0 / 0.7053 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.204e-06/0.1653, allocations: 4 kB / 0.7053 GB, free: 14.01 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.026e-05/0.1653, allocations: 0 / 0.7053 GB, free: 14.01 MB / 0.5294 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.0007392/0.166, allocations: 439 kB / 0.7057 GB, free: 13.54 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.166, allocations: 11.97 kB / 0.7058 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.457e-05/0.1661, allocations: 38.75 kB / 0.7058 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.541e-05/0.1661, allocations: 24.83 kB / 0.7058 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002996/0.1664, allocations: 170.3 kB / 0.706 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.19e-05/0.1665, allocations: 8.375 kB / 0.706 GB, free: 13.26 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.856e-05/0.1665, allocations: 24.27 kB / 0.706 GB, free: 13.24 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002896/0.1668, allocations: 142 kB / 0.7061 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.1668, allocations: 0 / 0.7061 GB, free: 13.08 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.1668, allocations: 4 kB / 0.7061 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.1668, allocations: 4 kB / 0.7062 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000224/0.167, allocations: 71.88 kB / 0.7062 GB, free: 13 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009459/0.168, allocations: 0.6956 MB / 0.7069 GB, free: 12.25 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001602/0.1681, allocations: 46.55 kB / 0.7069 GB, free: 12.19 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001075/0.1682, allocations: 32.84 kB / 0.707 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 3.041e-05/0.1683, allocations: 0 / 0.707 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002653/0.1685, allocations: 126.7 kB / 0.7071 GB, free: 12.01 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=11): time 1.352e-06/0.1685, allocations: 4 kB / 0.7071 GB, free: 12 MB / 0.5294 GB Notification: Performance of matching and sorting (n=11): time 0.0004946/0.169, allocations: 161.5 kB / 0.7073 GB, free: 11.84 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.899e-05/0.1691, allocations: 136.4 kB / 0.7074 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.1693, allocations: 203.2 kB / 0.7076 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.1693, allocations: 25.7 kB / 0.7076 GB, free: 11.44 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001013/0.1695, allocations: 143.8 kB / 0.7077 GB, free: 11.29 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.728e-05/0.1695, allocations: 32.02 kB / 0.7078 GB, free: 11.26 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.289e-05/0.1696, allocations: 41.7 kB / 0.7078 GB, free: 11.21 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001492/0.1697, allocations: 330.8 kB / 0.7081 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001228/0.1698, allocations: 39.97 kB / 0.7082 GB, free: 10.84 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001953/0.17, allocations: 144.3 kB / 0.7083 GB, free: 10.65 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003307/0.1703, allocations: 214.2 kB / 0.7085 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1704, allocations: 0 / 0.7085 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004005/0.1708, allocations: 197.6 kB / 0.7087 GB, free: 10.19 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.1708, allocations: 12.09 kB / 0.7087 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.1708, allocations: 4 kB / 0.7087 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.1708, allocations: 4 kB / 0.7087 GB, free: 10.17 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001303/0.1709, allocations: 39.91 kB / 0.7087 GB, free: 10.13 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.1709, allocations: 4 kB / 0.7088 GB, free: 10.13 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001429/0.1711, allocations: 24.11 kB / 0.7088 GB, free: 10.11 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.1711, allocations: 16 kB / 0.7088 GB, free: 10.09 MB / 0.5294 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.0001216/0.1712, allocations: 139.6 kB / 0.7089 GB, free: 9.945 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.091e-05/0.1712, allocations: 23.86 kB / 0.7089 GB, free: 9.922 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.505e-05/0.1713, allocations: 25.39 kB / 0.709 GB, free: 9.898 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1713, allocations: 0 / 0.709 GB, free: 9.898 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.712e-06/0.1713, allocations: 4 kB / 0.709 GB, free: 9.895 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.085e-06/0.1713, allocations: 0 / 0.709 GB, free: 9.895 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007854/0.1721, allocations: 488.6 kB / 0.7094 GB, free: 9.367 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.1721, allocations: 4 kB / 0.7094 GB, free: 9.363 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000114/0.1722, allocations: 15.98 kB / 0.7095 GB, free: 9.348 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.1722, allocations: 4 kB / 0.7095 GB, free: 9.344 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.1722, allocations: 4 kB / 0.7095 GB, free: 9.34 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.947e-06/0.1722, allocations: 4.25 kB / 0.7095 GB, free: 9.336 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.1722, allocations: 0 / 0.7095 GB, free: 9.336 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000525/0.1728, allocations: 360.3 kB / 0.7098 GB, free: 8.961 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 3.332e-05/0.1728, allocations: 19.84 kB / 0.7098 GB, free: 8.941 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.363e-05/0.1728, allocations: 4 kB / 0.7098 GB, free: 8.938 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001835/0.173, allocations: 27.95 kB / 0.7099 GB, free: 8.91 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.138e-05/0.1731, allocations: 7.984 kB / 0.7099 GB, free: 8.902 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.1731, allocations: 4 kB / 0.7099 GB, free: 8.898 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001344/0.1732, allocations: 152.2 kB / 0.71 GB, free: 8.75 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1e-07/0.1732, allocations: 0 / 0.71 GB, free: 8.75 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0003381/0.1735, allocations: 27.95 kB / 0.71 GB, free: 8.723 MB / 0.5294 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.0008543/0.1744, allocations: 0.9076 MB / 0.7109 GB, free: 7.785 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0003417/0.1747, allocations: 107.8 kB / 0.711 GB, free: 7.68 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1747, allocations: 0 / 0.711 GB, free: 7.68 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001477/0.1749, allocations: 48.97 kB / 0.7111 GB, free: 7.633 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005774/0.1755, allocations: 71.61 kB / 0.7112 GB, free: 7.57 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002773/0.1782, allocations: 2.262 MB / 0.7134 GB, free: 5.109 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001143/0.1783, allocations: 112 kB / 0.7135 GB, free: 4.984 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 8.939e-05/0.1784, allocations: 25.47 kB / 0.7135 GB, free: 4.961 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.07e-05/0.1785, allocations: 51.41 kB / 0.7135 GB, free: 4.91 MB / 0.5294 GB Notification: Performance of SimCode: time 4.71e-07/0.1785, allocations: 0 / 0.7135 GB, free: 4.91 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0331/0.2116, allocations: 4.777 MB / 0.7182 GB, free: 324 kB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.4, allocations: 10.41 kB / 0.7182 GB, free: 316 kB / 0.5294 GB " [Timeout remaining time 648] (rm -f IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Utilities_Math_Examples_IntegratorWithReset.fmu > IDEAS_IDEAS.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.256584051065147] Failed to read output from testmodel.py, exit status != 0: 11.511660960968584 11.540539001 11.369783693 Calling exit ...