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.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.001939/0.001939, allocations: 107 kB / 16.45 MB, free: 6.453 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.002585/0.002585, allocations: 215.2 kB / 19.43 MB, free: 3.625 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.483/1.483, allocations: 230.6 MB / 252.8 MB, free: 8.945 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00251/0.00251, allocations: 284.1 kB / 309.1 MB, free: 3.949 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.221/1.221, allocations: 180.9 MB / 0.5333 GB, free: 13.69 MB / 382.1 MB " [Timeout remaining time 179] 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.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(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"}) [Timeout 660] "Notification: NcDataReader2 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: BuildingSystems 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.002884/0.002884, allocations: 101.1 kB / 0.7343 GB, free: 28.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1857/0.1886, allocations: 95.34 MB / 0.8274 GB, free: 9.797 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.003403/0.192, allocations: 1.868 MB / 0.8292 GB, free: 7.918 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00115/0.1932, allocations: 0.5843 MB / 0.8298 GB, free: 7.328 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.1933, allocations: 3.938 kB / 0.8298 GB, free: 7.324 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001604/0.1934, allocations: 27.73 kB / 0.8298 GB, free: 7.297 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 8.108e-05/0.1935, allocations: 31.72 kB / 0.8298 GB, free: 7.266 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002421/0.1938, allocations: 59.86 kB / 0.8299 GB, free: 7.207 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002686/0.194, allocations: 175.5 kB / 0.83 GB, free: 7.035 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001594/0.1942, allocations: 37.94 kB / 0.8301 GB, free: 7 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001054/0.1943, allocations: 55.72 kB / 0.8301 GB, free: 6.945 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 9.012e-05/0.1944, allocations: 59.64 kB / 0.8302 GB, free: 6.887 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.932e-05/0.1944, allocations: 12 kB / 0.8302 GB, free: 6.875 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 1.968e-05/0.1944, allocations: 8 kB / 0.8302 GB, free: 6.867 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.438e-05/0.1945, allocations: 35.84 kB / 0.8302 GB, free: 6.832 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 7.434e-05/0.1946, allocations: 55.61 kB / 0.8303 GB, free: 6.777 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002312/0.1948, allocations: 139.3 kB / 0.8304 GB, free: 6.641 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1948, allocations: 0 / 0.8304 GB, free: 6.641 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.914e-06/0.1948, allocations: 0 / 0.8304 GB, free: 6.641 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.304e-05/0.1948, allocations: 8 kB / 0.8304 GB, free: 6.633 MB / 0.5762 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.0008118/0.1956, allocations: 474.6 kB / 0.8309 GB, free: 6.121 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.1957, allocations: 12.03 kB / 0.8309 GB, free: 6.109 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.443e-05/0.1957, allocations: 38.73 kB / 0.8309 GB, free: 6.062 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.204e-05/0.1958, allocations: 24.8 kB / 0.831 GB, free: 6.039 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003212/0.1961, allocations: 240.5 kB / 0.8312 GB, free: 5.766 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.1961, allocations: 8.375 kB / 0.8312 GB, free: 5.758 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.121e-05/0.1961, allocations: 12.38 kB / 0.8312 GB, free: 5.746 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002973/0.1964, allocations: 150 kB / 0.8314 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.1964, allocations: 0 / 0.8314 GB, free: 5.578 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.543e-05/0.1964, allocations: 8 kB / 0.8314 GB, free: 5.57 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.1965, allocations: 4 kB / 0.8314 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002317/0.1967, allocations: 71.88 kB / 0.8314 GB, free: 5.496 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000908/0.1976, allocations: 0.7394 MB / 0.8322 GB, free: 4.691 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001661/0.1978, allocations: 46.5 kB / 0.8322 GB, free: 4.637 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/0.1979, allocations: 36.83 kB / 0.8322 GB, free: 4.598 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.549e-05/0.1979, allocations: 4 kB / 0.8322 GB, free: 4.594 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002485/0.1981, allocations: 122.7 kB / 0.8324 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=11): time 1.253e-06/0.1982, allocations: 0 / 0.8324 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.0005037/0.1987, allocations: 173.6 kB / 0.8325 GB, free: 4.273 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.18e-05/0.1987, allocations: 132.5 kB / 0.8326 GB, free: 4.113 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000214/0.199, allocations: 196 kB / 0.8328 GB, free: 3.91 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.291e-05/0.199, allocations: 29.7 kB / 0.8329 GB, free: 3.875 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.849e-05/0.1991, allocations: 131.9 kB / 0.833 GB, free: 3.742 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.461e-05/0.1991, allocations: 47.8 kB / 0.833 GB, free: 3.695 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.028e-05/0.1992, allocations: 37.7 kB / 0.8331 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001402/0.1993, allocations: 334.8 kB / 0.8334 GB, free: 3.316 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001256/0.1994, allocations: 39.91 kB / 0.8334 GB, free: 3.277 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001966/0.1996, allocations: 142.5 kB / 0.8336 GB, free: 3.086 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003267/0.2, allocations: 202.3 kB / 0.8338 GB, free: 2.836 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.2, allocations: 0 / 0.8338 GB, free: 2.836 MB / 0.5762 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004057/0.2004, allocations: 209.2 kB / 0.834 GB, free: 2.625 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.2004, allocations: 4 kB / 0.834 GB, free: 2.621 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.2004, allocations: 4 kB / 0.834 GB, free: 2.617 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.2004, allocations: 8 kB / 0.834 GB, free: 2.609 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.2005, allocations: 32.42 kB / 0.834 GB, free: 2.578 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.192e-05/0.2005, allocations: 15.92 kB / 0.834 GB, free: 2.562 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001525/0.2007, allocations: 32.08 kB / 0.834 GB, free: 2.531 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.357e-05/0.2007, allocations: 8 kB / 0.8341 GB, free: 2.523 MB / 0.5762 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.0001193/0.2008, allocations: 144.5 kB / 0.8342 GB, free: 2.375 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3e-05/0.2009, allocations: 23.83 kB / 0.8342 GB, free: 2.352 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.69e-05/0.2009, allocations: 25.39 kB / 0.8342 GB, free: 2.328 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.38e-06/0.2009, allocations: 4 kB / 0.8342 GB, free: 2.324 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.2009, allocations: 0 / 0.8342 GB, free: 2.324 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.2009, allocations: 4 kB / 0.8342 GB, free: 2.32 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007821/0.2017, allocations: 0.5132 MB / 0.8347 GB, free: 1.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2017, allocations: 0 / 0.8347 GB, free: 1.75 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000116/0.2018, allocations: 19.92 kB / 0.8348 GB, free: 1.73 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.2018, allocations: 0 / 0.8348 GB, free: 1.73 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.656e-05/0.2018, allocations: 8 kB / 0.8348 GB, free: 1.723 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.989e-06/0.2019, allocations: 7.938 kB / 0.8348 GB, free: 1.715 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2019, allocations: 0 / 0.8348 GB, free: 1.715 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005226/0.2024, allocations: 360.3 kB / 0.8351 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.489e-05/0.2024, allocations: 97 kB / 0.8352 GB, free: 1.227 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.473e-05/0.2025, allocations: 4 kB / 0.8352 GB, free: 1.223 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000183/0.2026, allocations: 19.86 kB / 0.8352 GB, free: 1.203 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.946e-05/0.2027, allocations: 15.98 kB / 0.8353 GB, free: 1.188 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.2027, allocations: 4 kB / 0.8353 GB, free: 1.184 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001197/0.2028, allocations: 139.4 kB / 0.8354 GB, free: 1.047 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6e-08/0.2028, allocations: 0 / 0.8354 GB, free: 1.047 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003224/0.2031, allocations: 28 kB / 0.8354 GB, free: 1.02 MB / 0.5762 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.0008313/0.204, allocations: 0.8972 MB / 0.8363 GB, free: 92 kB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003411/0.2043, allocations: 111.8 kB / 0.8364 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2043, allocations: 1 kB / 0.8364 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001474/0.2045, allocations: 55.92 kB / 0.8365 GB, free: 15.93 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005529/0.205, allocations: 80.45 kB / 0.8365 GB, free: 15.86 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002663/0.2077, allocations: 2.263 MB / 0.8387 GB, free: 13.4 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003404/0.208, allocations: 0.7242 MB / 0.8395 GB, free: 12.65 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 6.954e-05/0.2081, allocations: 13.97 kB / 0.8395 GB, free: 12.63 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.464e-05/0.2082, allocations: 55.41 kB / 0.8395 GB, free: 12.58 MB / 0.5919 GB Notification: Performance of SimCode: time 4.3e-07/0.2082, allocations: 4 kB / 0.8395 GB, free: 12.57 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02874/0.2369, allocations: 4.068 MB / 0.8435 GB, free: 8.645 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.97/8.207, allocations: 11.33 kB / 0.8435 GB, free: 8.637 MB / 0.5919 GB " [Timeout remaining time 652] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.568048677872866] Failed to read output from testmodel.py, exit status != 0: 8.279212693683803 8.302204931 8.104317706 Calling exit ...