Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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.002069/0.002069, allocations: 103.6 kB / 18.95 MB, free: 2.688 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.002736/0.002736, allocations: 216.8 kB / 22.24 MB, free: 5.242 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.513/1.513, 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/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.373/3.373, allocations: 0.5107 GB / 0.8158 GB, free: 17.82 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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: translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset") translateModel(Buildings.Utilities.Math.Examples.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intWitRes1.y_start|intWitRes1.y_reset|intWitRes1.y|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in|intNoReset.y_start|intNoReset.y|intDef.y_start|intDef.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset") [Timeout 300] "Notification: Buildings 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.002271/0.002271, allocations: 68.72 kB / 1.186 GB, free: 13.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3826/0.3849, allocations: 181.9 MB / 1.364 GB, free: 13.59 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003131/0.388, allocations: 1.787 MB / 1.366 GB, free: 11.79 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001114/0.3891, allocations: 0.5465 MB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.458e-05/0.3892, allocations: 7.938 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001325/0.3893, allocations: 19.73 kB / 1.366 GB, free: 11.21 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.494e-05/0.3894, allocations: 35.72 kB / 1.366 GB, free: 11.17 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002281/0.3897, allocations: 67.88 kB / 1.366 GB, free: 11.11 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002569/0.3899, allocations: 175.4 kB / 1.366 GB, free: 10.93 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001416/0.3901, allocations: 37.72 kB / 1.366 GB, free: 10.89 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 9.644e-05/0.3901, allocations: 55.78 kB / 1.367 GB, free: 10.84 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 8.105e-05/0.3902, allocations: 51.64 kB / 1.367 GB, free: 10.79 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.527e-05/0.3903, allocations: 8 kB / 1.367 GB, free: 10.78 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 2.097e-05/0.3903, allocations: 12 kB / 1.367 GB, free: 10.77 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.77e-05/0.3903, allocations: 27.91 kB / 1.367 GB, free: 10.74 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.806e-05/0.3904, allocations: 63.61 kB / 1.367 GB, free: 10.68 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001975/0.3906, allocations: 123.4 kB / 1.367 GB, free: 10.56 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.3906, allocations: 0 / 1.367 GB, free: 10.56 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3906, allocations: 0 / 1.367 GB, free: 10.56 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.179e-06/0.3906, allocations: 4 kB / 1.367 GB, free: 10.55 MB / 1.061 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.0007794/0.3914, allocations: 431.1 kB / 1.367 GB, free: 10.1 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.3914, allocations: 8.031 kB / 1.367 GB, free: 10.09 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.418e-05/0.3915, allocations: 28.8 kB / 1.367 GB, free: 10.06 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003146/0.3918, allocations: 178.1 kB / 1.367 GB, free: 9.863 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.439e-05/0.3918, allocations: 12.38 kB / 1.367 GB, free: 9.852 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.452e-05/0.3918, allocations: 12.38 kB / 1.367 GB, free: 9.84 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003169/0.3921, allocations: 148.2 kB / 1.368 GB, free: 9.676 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.3921, allocations: 0 / 1.368 GB, free: 9.676 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.946e-05/0.3922, allocations: 11.98 kB / 1.368 GB, free: 9.664 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.3922, allocations: 0 / 1.368 GB, free: 9.664 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000239/0.3924, allocations: 71.89 kB / 1.368 GB, free: 9.594 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009148/0.3933, allocations: 0.6533 MB / 1.368 GB, free: 8.895 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001513/0.3935, allocations: 46.5 kB / 1.368 GB, free: 8.84 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001086/0.3936, allocations: 32.83 kB / 1.368 GB, free: 8.805 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.592e-05/0.3936, allocations: 4 kB / 1.368 GB, free: 8.801 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002449/0.3938, allocations: 122.8 kB / 1.368 GB, free: 8.656 MB / 1.061 GB Notification: Performance of pre-optimization done (n=11): time 1.302e-06/0.3938, allocations: 0 / 1.368 GB, free: 8.656 MB / 1.061 GB Notification: Performance of matching and sorting (n=11): time 0.0005059/0.3944, allocations: 169.5 kB / 1.369 GB, free: 8.484 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.105e-05/0.3944, allocations: 128.5 kB / 1.369 GB, free: 8.328 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001893/0.3946, allocations: 191.8 kB / 1.369 GB, free: 8.133 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.877e-05/0.3947, allocations: 29.95 kB / 1.369 GB, free: 8.098 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 9.611e-05/0.3948, allocations: 131.9 kB / 1.369 GB, free: 7.965 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.897e-05/0.3948, allocations: 39.88 kB / 1.369 GB, free: 7.926 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.553e-05/0.3949, allocations: 49.64 kB / 1.369 GB, free: 7.871 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.00018/0.395, allocations: 326.8 kB / 1.369 GB, free: 7.543 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.3952, allocations: 39.97 kB / 1.37 GB, free: 7.504 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002088/0.3954, allocations: 142.6 kB / 1.37 GB, free: 7.312 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003544/0.3957, allocations: 214.4 kB / 1.37 GB, free: 7.051 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.3957, allocations: 4 kB / 1.37 GB, free: 7.047 MB / 1.061 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004196/0.3962, allocations: 201.5 kB / 1.37 GB, free: 6.844 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.3962, allocations: 11.94 kB / 1.37 GB, free: 6.832 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.3962, allocations: 3.938 kB / 1.37 GB, free: 6.828 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.984e-05/0.3962, allocations: 8 kB / 1.37 GB, free: 6.82 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/0.3963, allocations: 31.97 kB / 1.37 GB, free: 6.789 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.3963, allocations: 7.938 kB / 1.37 GB, free: 6.781 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001404/0.3965, allocations: 23.94 kB / 1.37 GB, free: 6.758 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.329e-05/0.3965, allocations: 8.188 kB / 1.37 GB, free: 6.75 MB / 1.061 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.0001311/0.3966, allocations: 142.3 kB / 1.37 GB, free: 6.602 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.4e-05/0.3967, allocations: 19.91 kB / 1.37 GB, free: 6.582 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.675e-05/0.3967, allocations: 17.39 kB / 1.37 GB, free: 6.559 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3967, allocations: 0 / 1.37 GB, free: 6.559 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.3967, allocations: 4 kB / 1.37 GB, free: 6.555 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3967, allocations: 0 / 1.37 GB, free: 6.555 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007467/0.3975, allocations: 453.2 kB / 1.371 GB, free: 6.074 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3975, allocations: 4 kB / 1.371 GB, free: 6.07 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001251/0.3976, allocations: 19.92 kB / 1.371 GB, free: 6.051 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.3976, allocations: 0 / 1.371 GB, free: 6.051 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.55e-05/0.3976, allocations: 8 kB / 1.371 GB, free: 6.043 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3976, allocations: 0 / 1.371 GB, free: 6.043 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3976, allocations: 4 kB / 1.371 GB, free: 6.039 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005641/0.3982, allocations: 364.2 kB / 1.371 GB, free: 5.66 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.566e-05/0.3982, allocations: 23.88 kB / 1.371 GB, free: 5.637 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.564e-05/0.3982, allocations: 8 kB / 1.371 GB, free: 5.629 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001688/0.3984, allocations: 11.98 kB / 1.371 GB, free: 5.617 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.353e-05/0.3985, allocations: 15.92 kB / 1.371 GB, free: 5.602 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.313e-05/0.3985, allocations: 7.984 kB / 1.371 GB, free: 5.594 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001159/0.3986, allocations: 131.4 kB / 1.371 GB, free: 5.465 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3986, allocations: 0 / 1.371 GB, free: 5.465 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0003329/0.3989, allocations: 28 kB / 1.371 GB, free: 5.438 MB / 1.061 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.0001225/0.399, allocations: 105.9 kB / 1.371 GB, free: 5.328 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.000339/0.3994, allocations: 115.9 kB / 1.372 GB, free: 5.215 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3994, allocations: 3.938 kB / 1.372 GB, free: 5.211 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001441/0.3995, allocations: 49.03 kB / 1.372 GB, free: 5.164 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005604/0.4001, allocations: 79.14 kB / 1.372 GB, free: 5.094 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006313/0.4007, allocations: 356.4 kB / 1.372 GB, free: 4.711 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001212/0.4008, allocations: 108.1 kB / 1.372 GB, free: 4.586 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.27e-05/0.4009, allocations: 21.48 kB / 1.372 GB, free: 4.562 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.587e-05/0.401, allocations: 15.44 kB / 1.372 GB, free: 4.547 MB / 1.061 GB Notification: Performance of SimCode: time 3.1e-07/0.401, allocations: 0 / 1.372 GB, free: 4.547 MB / 1.061 GB Notification: Performance of Templates: time 0.00612/0.4071, allocations: 2.25 MB / 1.374 GB, free: 2.352 MB / 1.061 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.04918502829969]