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.001601/0.001601, allocations: 113 kB / 18.94 MB, free: 2.934 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.00238/0.00238, allocations: 209 kB / 22.25 MB, free: 5.086 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 / 256 MB, free: 8.016 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.8555/0.8555, allocations: 134 MB / 446.4 MB, free: 10.28 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.00205/0.00205, allocations: 70.48 kB / 0.6186 GB, free: 7.223 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1832/0.1852, allocations: 85.91 MB / 0.7024 GB, free: 1.402 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.IntegratorWithReset): time 0.003295/0.1885, allocations: 1.845 MB / 0.7042 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001218/0.1897, allocations: 0.596 MB / 0.7048 GB, free: 14.95 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001232/0.1899, allocations: 7.875 kB / 0.7048 GB, free: 14.94 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.000177/0.19, allocations: 23.73 kB / 0.7049 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 8.918e-05/0.1901, allocations: 31.72 kB / 0.7049 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.000262/0.1904, allocations: 71.8 kB / 0.705 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0002873/0.1907, allocations: 171.5 kB / 0.7051 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001658/0.1908, allocations: 38.02 kB / 0.7052 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.191, allocations: 63.66 kB / 0.7052 GB, free: 14.55 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 9.27e-05/0.1911, allocations: 59.69 kB / 0.7053 GB, free: 14.49 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 3.157e-05/0.1911, allocations: 12 kB / 0.7053 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 2.068e-05/0.1911, allocations: 8 kB / 0.7053 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 3.679e-05/0.1911, allocations: 31.86 kB / 0.7053 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.385e-05/0.1912, allocations: 55.61 kB / 0.7054 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0002227/0.1914, allocations: 135.3 kB / 0.7055 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1914, allocations: 0 / 0.7055 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.463e-06/0.1914, allocations: 4 kB / 0.7055 GB, free: 14.25 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.1915, allocations: 4 kB / 0.7055 GB, free: 14.24 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.0008255/0.1923, allocations: 431.1 kB / 0.7059 GB, free: 13.79 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.1923, allocations: 12.02 kB / 0.7059 GB, free: 13.77 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.64e-05/0.1924, allocations: 42.75 kB / 0.706 GB, free: 13.72 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.386e-05/0.1924, allocations: 16.84 kB / 0.706 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003255/0.1928, allocations: 178.2 kB / 0.7062 GB, free: 13.51 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.1928, allocations: 12.31 kB / 0.7062 GB, free: 13.5 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.256e-05/0.1928, allocations: 16.33 kB / 0.7062 GB, free: 13.48 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003151/0.1931, allocations: 146 kB / 0.7063 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.1931, allocations: 4 kB / 0.7063 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.1931, allocations: 4 kB / 0.7063 GB, free: 13.31 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.1931, allocations: 4 kB / 0.7063 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002366/0.1934, allocations: 75.81 kB / 0.7064 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.1944, allocations: 0.7073 MB / 0.7071 GB, free: 12.46 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001503/0.1946, allocations: 50.48 kB / 0.7072 GB, free: 12.41 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000101/0.1947, allocations: 28.84 kB / 0.7072 GB, free: 12.38 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 2.209e-05/0.1947, allocations: 4 kB / 0.7072 GB, free: 12.37 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002614/0.195, allocations: 132.8 kB / 0.7073 GB, free: 12.22 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=11): time 1.462e-06/0.195, allocations: 0 / 0.7073 GB, free: 12.22 MB / 0.5294 GB Notification: Performance of matching and sorting (n=11): time 0.0004862/0.1954, allocations: 169.6 kB / 0.7075 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.1955, allocations: 128.5 kB / 0.7076 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002057/0.1958, allocations: 195.2 kB / 0.7078 GB, free: 11.69 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.311e-05/0.1958, allocations: 33.7 kB / 0.7078 GB, free: 11.65 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001121/0.1959, allocations: 131.9 kB / 0.7079 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 3.867e-05/0.1959, allocations: 35.73 kB / 0.708 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.193e-05/0.196, allocations: 49.72 kB / 0.708 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001759/0.1962, allocations: 330.8 kB / 0.7083 GB, free: 11.1 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001321/0.1963, allocations: 35.97 kB / 0.7084 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002215/0.1965, allocations: 147.3 kB / 0.7085 GB, free: 10.87 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000342/0.1969, allocations: 194.4 kB / 0.7087 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.005e-06/0.1969, allocations: 4 kB / 0.7087 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004153/0.1973, allocations: 209.6 kB / 0.7089 GB, free: 10.41 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 2.098e-05/0.1973, allocations: 8 kB / 0.7089 GB, free: 10.4 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.1973, allocations: 7.938 kB / 0.7089 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.338e-05/0.1973, allocations: 8.531 kB / 0.7089 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001326/0.1975, allocations: 39.92 kB / 0.709 GB, free: 10.35 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.1975, allocations: 7.984 kB / 0.709 GB, free: 10.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001476/0.1976, allocations: 27.88 kB / 0.709 GB, free: 10.31 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.442e-05/0.1976, allocations: 8 kB / 0.709 GB, free: 10.3 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.0001408/0.1978, allocations: 141.7 kB / 0.7091 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.067e-05/0.1978, allocations: 19.86 kB / 0.7092 GB, free: 10.14 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.517e-05/0.1979, allocations: 21.39 kB / 0.7092 GB, free: 10.12 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.139e-06/0.1979, allocations: 4 kB / 0.7092 GB, free: 10.11 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.222e-06/0.1979, allocations: 4 kB / 0.7092 GB, free: 10.11 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1979, allocations: 4 kB / 0.7092 GB, free: 10.11 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008107/0.1987, allocations: 492.6 kB / 0.7097 GB, free: 9.574 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.1987, allocations: 0 / 0.7097 GB, free: 9.574 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001126/0.1988, allocations: 15.98 kB / 0.7097 GB, free: 9.559 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.1988, allocations: 8 kB / 0.7097 GB, free: 9.551 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.1988, allocations: 4 kB / 0.7097 GB, free: 9.547 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.466e-06/0.1988, allocations: 7.938 kB / 0.7097 GB, free: 9.539 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1988, allocations: 0 / 0.7097 GB, free: 9.539 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005337/0.1994, allocations: 362.8 kB / 0.71 GB, free: 9.164 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 3.779e-05/0.1994, allocations: 19.84 kB / 0.7101 GB, free: 9.145 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.657e-05/0.1994, allocations: 4.031 kB / 0.7101 GB, free: 9.141 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001669/0.1996, allocations: 19.92 kB / 0.7101 GB, free: 9.121 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.937e-05/0.1997, allocations: 11.92 kB / 0.7101 GB, free: 9.109 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.1997, allocations: 11.94 kB / 0.7101 GB, free: 9.098 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0001414/0.1998, allocations: 144.2 kB / 0.7102 GB, free: 8.957 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1998, allocations: 8 kB / 0.7102 GB, free: 8.949 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0003283/0.2001, allocations: 31.94 kB / 0.7103 GB, free: 8.918 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.0008209/0.201, allocations: 0.8929 MB / 0.7112 GB, free: 7.992 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.0003369/0.2013, allocations: 112.5 kB / 0.7113 GB, free: 7.883 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.2013, allocations: 256 / 0.7113 GB, free: 7.883 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0001371/0.2014, allocations: 51.91 kB / 0.7113 GB, free: 7.832 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005706/0.202, allocations: 70.92 kB / 0.7114 GB, free: 7.77 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002861/0.2049, allocations: 2.268 MB / 0.7136 GB, free: 5.301 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.2052, allocations: 0.7202 MB / 0.7143 GB, free: 4.555 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 8.475e-05/0.2053, allocations: 17.47 kB / 0.7143 GB, free: 4.539 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.885e-05/0.2054, allocations: 55.42 kB / 0.7144 GB, free: 4.484 MB / 0.5294 GB Notification: Performance of SimCode: time 8.71e-07/0.2054, allocations: 0 / 0.7144 GB, free: 4.484 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03539/0.2408, allocations: 4.234 MB / 0.7185 GB, free: 424 kB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.05/11.29, allocations: 10.02 kB / 0.7185 GB, free: 416 kB / 0.5294 GB " [Timeout remaining time 649] (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.039380463997077] Failed to read output from testmodel.py, exit status != 0: 11.401593878006679 11.430244441 11.233748234 Calling exit ...