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.001568/0.001568, allocations: 101.7 kB / 16.45 MB, free: 6.449 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.001464/0.001464, allocations: 206.4 kB / 19.42 MB, free: 3.641 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.458/1.458, allocations: 230.6 MB / 252.8 MB, free: 8.953 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.8252/0.8252, allocations: 133.9 MB / 442.8 MB, free: 11.31 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.001895/0.001895, allocations: 64 kB / 0.6134 GB, free: 8.703 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.1773, allocations: 85.85 MB / 0.6973 GB, free: 2.938 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.003303/0.1806, allocations: 1.842 MB / 0.6991 GB, free: 1.082 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001256/0.1818, allocations: 0.5805 MB / 0.6996 GB, free: 0.4961 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.1819, allocations: 7.938 kB / 0.6996 GB, free: 500 kB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.1821, allocations: 27.66 kB / 0.6997 GB, free: 472 kB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 7.948e-05/0.1822, allocations: 23.75 kB / 0.6997 GB, free: 448 kB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.00025/0.1824, allocations: 71.84 kB / 0.6998 GB, free: 376 kB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0002513/0.1827, allocations: 163.5 kB / 0.6999 GB, free: 212 kB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001701/0.1828, allocations: 41.94 kB / 0.7 GB, free: 172 kB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001094/0.1829, allocations: 59.66 kB / 0.7 GB, free: 112 kB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 9.242e-05/0.183, allocations: 59.7 kB / 0.7001 GB, free: 52 kB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 3.255e-05/0.1831, allocations: 8 kB / 0.7001 GB, free: 44 kB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 2.456e-05/0.1831, allocations: 12 kB / 0.7001 GB, free: 32 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 4.4e-05/0.1831, allocations: 31.84 kB / 0.7001 GB, free: 0 / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0001032/0.1832, allocations: 63.73 kB / 0.7002 GB, free: 15.93 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002377/0.1835, allocations: 135.3 kB / 0.7003 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1835, allocations: 0 / 0.7003 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.623e-06/0.1835, allocations: 4 kB / 0.7003 GB, free: 15.8 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.743e-06/0.1835, allocations: 0 / 0.7003 GB, free: 15.8 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.0008691/0.1844, allocations: 482.5 kB / 0.7008 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.1844, allocations: 9.109 kB / 0.7008 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.431e-05/0.1845, allocations: 42.73 kB / 0.7008 GB, free: 15.22 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.014e-05/0.1845, allocations: 16.84 kB / 0.7008 GB, free: 15.2 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003932/0.1849, allocations: 240 kB / 0.7011 GB, free: 14.93 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.188e-05/0.1849, allocations: 8.375 kB / 0.7011 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.814e-05/0.185, allocations: 20.3 kB / 0.7011 GB, free: 14.9 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003255/0.1853, allocations: 153.9 kB / 0.7012 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.019e-05/0.1853, allocations: 4 kB / 0.7012 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.943e-05/0.1853, allocations: 8 kB / 0.7013 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.1853, allocations: 8 kB / 0.7013 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002377/0.1856, allocations: 69.59 kB / 0.7013 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001048/0.1866, allocations: 0.7395 MB / 0.702 GB, free: 13.84 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001573/0.1868, allocations: 42.55 kB / 0.7021 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001189/0.1869, allocations: 44.77 kB / 0.7021 GB, free: 13.74 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 1.918e-05/0.1869, allocations: 4 kB / 0.7021 GB, free: 13.74 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002635/0.1872, allocations: 118.7 kB / 0.7022 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=11): time 1.854e-06/0.1872, allocations: 0 / 0.7022 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of matching and sorting (n=11): time 0.0005508/0.1877, allocations: 169.6 kB / 0.7024 GB, free: 13.43 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.978e-05/0.1878, allocations: 128.5 kB / 0.7025 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002394/0.1881, allocations: 203.2 kB / 0.7027 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.477e-05/0.1881, allocations: 29.69 kB / 0.7028 GB, free: 13.02 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001107/0.1882, allocations: 135.8 kB / 0.7029 GB, free: 12.89 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.86e-05/0.1882, allocations: 35.73 kB / 0.7029 GB, free: 12.85 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.043e-05/0.1883, allocations: 45.77 kB / 0.703 GB, free: 12.8 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.000175/0.1885, allocations: 326.8 kB / 0.7033 GB, free: 12.47 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00013/0.1886, allocations: 39.91 kB / 0.7033 GB, free: 12.43 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002187/0.1888, allocations: 154.5 kB / 0.7035 GB, free: 12.23 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003725/0.1892, allocations: 202.3 kB / 0.7037 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.056e-06/0.1892, allocations: 0 / 0.7037 GB, free: 11.98 MB / 0.5294 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000411/0.1896, allocations: 201.2 kB / 0.7038 GB, free: 11.78 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.1896, allocations: 8 kB / 0.7039 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1896, allocations: 4 kB / 0.7039 GB, free: 11.77 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.842e-05/0.1897, allocations: 8.438 kB / 0.7039 GB, free: 11.76 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001333/0.1898, allocations: 39.91 kB / 0.7039 GB, free: 11.72 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.1898, allocations: 7.938 kB / 0.7039 GB, free: 11.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001457/0.1899, allocations: 27.88 kB / 0.7039 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.791e-05/0.19, allocations: 16 kB / 0.704 GB, free: 11.67 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.0001278/0.1901, allocations: 136.7 kB / 0.7041 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.533e-05/0.1901, allocations: 19.89 kB / 0.7041 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.803e-05/0.1902, allocations: 21.41 kB / 0.7041 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.1902, allocations: 0 / 0.7041 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.1902, allocations: 4 kB / 0.7041 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.091e-06/0.1902, allocations: 7.984 kB / 0.7041 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008518/0.191, allocations: 0.5054 MB / 0.7046 GB, free: 10.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.191, allocations: 0 / 0.7046 GB, free: 10.91 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001375/0.1912, allocations: 19.92 kB / 0.7046 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.684e-06/0.1912, allocations: 7.984 kB / 0.7047 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.1912, allocations: 8.312 kB / 0.7047 GB, free: 10.88 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.791e-06/0.1912, allocations: 7.938 kB / 0.7047 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1912, allocations: 4 kB / 0.7047 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005639/0.1918, allocations: 362.2 kB / 0.705 GB, free: 10.49 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 6.928e-05/0.1918, allocations: 89.02 kB / 0.7051 GB, free: 10.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.718e-05/0.1919, allocations: 8.094 kB / 0.7051 GB, free: 10.38 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/0.1921, allocations: 15.97 kB / 0.7051 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.09e-05/0.1921, allocations: 19.95 kB / 0.7051 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/0.1921, allocations: 4 kB / 0.7051 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.000145/0.1923, allocations: 148.2 kB / 0.7053 GB, free: 10.19 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/0.1923, allocations: 4 kB / 0.7053 GB, free: 10.19 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0003489/0.1926, allocations: 24 kB / 0.7053 GB, free: 10.16 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.001079/0.1937, allocations: 0.9006 MB / 0.7062 GB, free: 9.234 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0004339/0.1941, allocations: 120.5 kB / 0.7063 GB, free: 9.117 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.1941, allocations: 192 / 0.7063 GB, free: 9.117 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001602/0.1943, allocations: 51.91 kB / 0.7064 GB, free: 9.066 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006669/0.195, allocations: 61.03 kB / 0.7064 GB, free: 9.012 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003386/0.1983, allocations: 2.266 MB / 0.7086 GB, free: 6.555 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005199/0.1989, allocations: 0.7241 MB / 0.7093 GB, free: 5.805 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 9.519e-05/0.199, allocations: 13.55 kB / 0.7094 GB, free: 5.793 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.935e-05/0.1991, allocations: 55.42 kB / 0.7094 GB, free: 5.738 MB / 0.5294 GB Notification: Performance of SimCode: time 7.11e-07/0.1991, allocations: 0 / 0.7094 GB, free: 5.738 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03047/0.2295, allocations: 4.046 MB / 0.7134 GB, free: 1.816 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.106/8.335, allocations: 4.859 kB / 0.7134 GB, free: 1.812 MB / 0.5294 GB " [Timeout remaining time 652] (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: 11.98405823999201] Failed to read output from testmodel.py, exit status != 0: 8.405176360000041 8.431412733 8.243238479 Calling exit ...