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.001283/0.001283, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001417/0.001417, allocations: 216.1 kB / 23.03 MB, free: 4.922 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.484/1.484, allocations: 230.6 MB / 256.8 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002544/0.002544, allocations: 285.1 kB / 313.5 MB, free: 2.609 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.256/1.256, allocations: 180.6 MB / 0.5377 GB, free: 14.58 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 master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset",fmuType="cs",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.002722/0.002722, allocations: 101 kB / 0.7403 GB, free: 27.73 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.178/0.1807, allocations: 95.38 MB / 0.8334 GB, free: 8.152 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.IntegratorWithReset): time 0.003396/0.1841, allocations: 1.814 MB / 0.8352 GB, free: 6.328 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.001139/0.1852, allocations: 0.5455 MB / 0.8357 GB, free: 5.777 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001014/0.1853, allocations: 3.938 kB / 0.8357 GB, free: 5.773 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001606/0.1855, allocations: 27.67 kB / 0.8357 GB, free: 5.746 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 7.93e-05/0.1856, allocations: 27.73 kB / 0.8358 GB, free: 5.719 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002341/0.1858, allocations: 63.91 kB / 0.8358 GB, free: 5.656 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002446/0.186, allocations: 179.4 kB / 0.836 GB, free: 5.48 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00015/0.1862, allocations: 42.03 kB / 0.836 GB, free: 5.438 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 8.809e-05/0.1863, allocations: 51.8 kB / 0.8361 GB, free: 5.387 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 8.792e-05/0.1864, allocations: 55.64 kB / 0.8361 GB, free: 5.332 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.907e-05/0.1864, allocations: 12 kB / 0.8362 GB, free: 5.32 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 2.174e-05/0.1864, allocations: 8 kB / 0.8362 GB, free: 5.312 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.385e-05/0.1865, allocations: 35.84 kB / 0.8362 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 7.888e-05/0.1865, allocations: 51.67 kB / 0.8363 GB, free: 5.227 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0002002/0.1867, allocations: 139.3 kB / 0.8364 GB, free: 5.09 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1867, allocations: 0 / 0.8364 GB, free: 5.09 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.004e-06/0.1867, allocations: 0 / 0.8364 GB, free: 5.09 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.1867, allocations: 4 kB / 0.8364 GB, free: 5.086 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.0007646/0.1875, allocations: 419.2 kB / 0.8368 GB, free: 4.641 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.1876, allocations: 13.34 kB / 0.8368 GB, free: 4.629 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.003e-05/0.1876, allocations: 4.188 kB / 0.8368 GB, free: 4.625 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.809e-05/0.1876, allocations: 46.67 kB / 0.8368 GB, free: 4.57 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.811e-05/0.1877, allocations: 24.8 kB / 0.8369 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003124/0.188, allocations: 170.2 kB / 0.837 GB, free: 4.355 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.698e-05/0.188, allocations: 16.31 kB / 0.8371 GB, free: 4.34 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.072e-05/0.188, allocations: 12.38 kB / 0.8371 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003568/0.1884, allocations: 153.8 kB / 0.8372 GB, free: 4.156 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.759e-06/0.1884, allocations: 0 / 0.8372 GB, free: 4.156 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.1884, allocations: 4 kB / 0.8372 GB, free: 4.152 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.61e-06/0.1884, allocations: 4 kB / 0.8372 GB, free: 4.148 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002413/0.1887, allocations: 71.89 kB / 0.8373 GB, free: 4.078 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000995/0.1897, allocations: 0.6878 MB / 0.838 GB, free: 3.332 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000167/0.1898, allocations: 46.55 kB / 0.838 GB, free: 3.277 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001059/0.1899, allocations: 36.77 kB / 0.838 GB, free: 3.238 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.694e-05/0.19, allocations: 3.938 kB / 0.838 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002549/0.1902, allocations: 130.7 kB / 0.8382 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=11): time 1.343e-06/0.1902, allocations: 0 / 0.8382 GB, free: 3.082 MB / 0.5762 GB Notification: Performance of matching and sorting (n=11): time 0.000498/0.1907, allocations: 165.4 kB / 0.8383 GB, free: 2.914 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000102/0.1908, allocations: 136.5 kB / 0.8385 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002022/0.191, allocations: 196 kB / 0.8386 GB, free: 2.547 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.569e-05/0.191, allocations: 29.7 kB / 0.8387 GB, free: 2.512 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.1911, allocations: 124 kB / 0.8388 GB, free: 2.387 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 4.289e-05/0.1912, allocations: 47.98 kB / 0.8388 GB, free: 2.34 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.267e-05/0.1912, allocations: 37.7 kB / 0.8389 GB, free: 2.297 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001904/0.1914, allocations: 330.8 kB / 0.8392 GB, free: 1.965 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.1916, allocations: 35.97 kB / 0.8392 GB, free: 1.93 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001958/0.1918, allocations: 142.5 kB / 0.8394 GB, free: 1.738 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003317/0.1921, allocations: 206.3 kB / 0.8396 GB, free: 1.484 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.1921, allocations: 0 / 0.8396 GB, free: 1.484 MB / 0.5762 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000405/0.1925, allocations: 209.8 kB / 0.8398 GB, free: 1.273 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.1925, allocations: 8 kB / 0.8398 GB, free: 1.266 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.1925, allocations: 4.047 kB / 0.8398 GB, free: 1.262 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.1926, allocations: 7.984 kB / 0.8398 GB, free: 1.254 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.1927, allocations: 32.17 kB / 0.8398 GB, free: 1.223 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.091e-05/0.1927, allocations: 8 kB / 0.8398 GB, free: 1.215 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001483/0.1928, allocations: 35.83 kB / 0.8398 GB, free: 1.18 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.1929, allocations: 11.98 kB / 0.8399 GB, free: 1.168 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.0001396/0.193, allocations: 144.5 kB / 0.84 GB, free: 1.02 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.484e-05/0.193, allocations: 23.97 kB / 0.84 GB, free: 0.9961 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.986e-05/0.1931, allocations: 21.39 kB / 0.84 GB, free: 0.9727 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.1931, allocations: 0 / 0.84 GB, free: 0.9727 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.1931, allocations: 7.938 kB / 0.84 GB, free: 0.9648 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.1931, allocations: 0 / 0.84 GB, free: 0.9648 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007903/0.1939, allocations: 484.8 kB / 0.8405 GB, free: 452 kB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1939, allocations: 0 / 0.8405 GB, free: 452 kB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/0.194, allocations: 15.98 kB / 0.8405 GB, free: 436 kB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.194, allocations: 7.938 kB / 0.8405 GB, free: 428 kB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.628e-05/0.194, allocations: 8 kB / 0.8405 GB, free: 420 kB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.194, allocations: 3.938 kB / 0.8405 GB, free: 416 kB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.194, allocations: 0 / 0.8405 GB, free: 416 kB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005265/0.1946, allocations: 356.3 kB / 0.8409 GB, free: 36 kB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 3.738e-05/0.1946, allocations: 27.83 kB / 0.8409 GB, free: 8 kB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.808e-05/0.1946, allocations: 4 kB / 0.8409 GB, free: 4 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000185/0.1948, allocations: 19.92 kB / 0.8409 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.815e-05/0.1949, allocations: 15.97 kB / 0.8409 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.226e-05/0.1949, allocations: 4 kB / 0.8409 GB, free: 15.96 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001329/0.195, allocations: 147.3 kB / 0.8411 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of sort global known variables: time 8e-08/0.195, allocations: 0 / 0.8411 GB, free: 15.82 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0003329/0.1953, allocations: 24 kB / 0.8411 GB, free: 15.8 MB / 0.5919 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.0008467/0.1962, allocations: 0.8947 MB / 0.842 GB, free: 14.87 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0003247/0.1965, allocations: 115.8 kB / 0.8421 GB, free: 14.76 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.1965, allocations: 4 kB / 0.8421 GB, free: 14.75 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001441/0.1967, allocations: 44.91 kB / 0.8421 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005972/0.1973, allocations: 72.97 kB / 0.8422 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002758/0.2, allocations: 2.274 MB / 0.8444 GB, free: 12.18 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001238/0.2001, allocations: 116.1 kB / 0.8445 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 8.393e-05/0.2002, allocations: 21.47 kB / 0.8446 GB, free: 12.02 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.981e-05/0.2003, allocations: 51.42 kB / 0.8446 GB, free: 11.97 MB / 0.5919 GB Notification: Performance of SimCode: time 3.91e-07/0.2003, allocations: 0 / 0.8446 GB, free: 11.97 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02774/0.2281, allocations: 4.446 MB / 0.849 GB, free: 7.75 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.45, allocations: 11.3 kB / 0.849 GB, free: 7.742 MB / 0.5919 GB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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: 15.819428634014912] Failed to read output from testmodel.py, exit status != 0: 11.60950988496188 11.627312454 11.437237646 Calling exit ...