Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001601/0.001601, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001826/0.001826, allocations: 220.8 kB / 23.01 MB, free: 4.605 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 / 256.8 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.204/3.204, allocations: 0.49 GB / 0.7958 GB, free: 33.52 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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_12_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_12_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.002042/0.002042, allocations: 66.09 kB / 1.155 GB, free: 25.27 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3796/0.3816, allocations: 176.1 MB / 1.327 GB, free: 1.285 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003285/0.3849, allocations: 1.85 MB / 1.329 GB, free: 15.43 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001266/0.3861, allocations: 0.5844 MB / 1.33 GB, free: 14.84 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001225/0.3863, allocations: 7.938 kB / 1.33 GB, free: 14.83 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.3864, allocations: 19.73 kB / 1.33 GB, free: 14.81 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001288/0.3866, allocations: 39.66 kB / 1.33 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002592/0.3868, allocations: 67.86 kB / 1.33 GB, free: 14.71 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002653/0.3871, allocations: 179.4 kB / 1.33 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.3872, allocations: 33.73 kB / 1.33 GB, free: 14.49 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 9.5e-05/0.3873, allocations: 55.78 kB / 1.33 GB, free: 14.44 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 9.665e-05/0.3874, allocations: 59.69 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.601e-05/0.3874, allocations: 11.94 kB / 1.33 GB, free: 14.37 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 2.192e-05/0.3875, allocations: 12 kB / 1.33 GB, free: 14.36 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.685e-05/0.3875, allocations: 27.86 kB / 1.33 GB, free: 14.33 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.309e-05/0.3876, allocations: 63.61 kB / 1.33 GB, free: 14.27 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.000212/0.3878, allocations: 135.4 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.3878, allocations: 3.938 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.422e-06/0.3878, allocations: 3.938 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of Transformations before backend: time 9.087e-06/0.3878, allocations: 3.984 kB / 1.33 GB, free: 14.12 MB / 1.029 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.0007915/0.3886, allocations: 427.1 kB / 1.331 GB, free: 13.67 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.3886, allocations: 12.03 kB / 1.331 GB, free: 13.66 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.857e-05/0.3887, allocations: 16.84 kB / 1.331 GB, free: 13.64 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003225/0.389, allocations: 178.7 kB / 1.331 GB, free: 13.44 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.389, allocations: 8.375 kB / 1.331 GB, free: 13.43 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.641e-05/0.389, allocations: 12.38 kB / 1.331 GB, free: 13.42 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000321/0.3894, allocations: 156.4 kB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.3894, allocations: 0 / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.984e-05/0.3894, allocations: 7.984 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.3894, allocations: 4 kB / 1.331 GB, free: 13.24 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002442/0.3896, allocations: 67.89 kB / 1.331 GB, free: 13.17 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009672/0.3906, allocations: 0.7073 MB / 1.332 GB, free: 12.41 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001552/0.3908, allocations: 54.47 kB / 1.332 GB, free: 12.34 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.3909, allocations: 36.83 kB / 1.332 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.221e-05/0.3909, allocations: 4 kB / 1.332 GB, free: 12.3 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002279/0.3911, allocations: 118.7 kB / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.383e-06/0.3911, allocations: 0 / 1.332 GB, free: 12.16 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0005096/0.3916, allocations: 173.6 kB / 1.332 GB, free: 11.98 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.478e-05/0.3917, allocations: 136.5 kB / 1.332 GB, free: 11.82 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001976/0.3919, allocations: 195 kB / 1.332 GB, free: 11.62 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.392, allocations: 37.62 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.336e-05/0.3921, allocations: 124.2 kB / 1.333 GB, free: 11.45 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.086e-05/0.3921, allocations: 47.66 kB / 1.333 GB, free: 11.4 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.245e-05/0.3922, allocations: 41.77 kB / 1.333 GB, free: 11.36 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.3923, allocations: 326.8 kB / 1.333 GB, free: 11.03 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.3924, allocations: 43.91 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002133/0.3926, allocations: 149.7 kB / 1.333 GB, free: 10.79 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003547/0.393, allocations: 198.3 kB / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.393, allocations: 0 / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004046/0.3934, allocations: 213.1 kB / 1.334 GB, free: 10.33 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.531e-05/0.3934, allocations: 4 kB / 1.334 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.3934, allocations: 4 kB / 1.334 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.3934, allocations: 4.5 kB / 1.334 GB, free: 10.32 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001477/0.3936, allocations: 39.91 kB / 1.334 GB, free: 10.28 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.248e-06/0.3936, allocations: 8 kB / 1.334 GB, free: 10.27 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001493/0.3938, allocations: 27.88 kB / 1.334 GB, free: 10.24 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.3938, allocations: 8 kB / 1.334 GB, free: 10.23 MB / 1.029 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.0001251/0.3939, allocations: 141.6 kB / 1.334 GB, free: 10.09 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.327e-05/0.3939, allocations: 19.91 kB / 1.334 GB, free: 10.07 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.626e-05/0.394, allocations: 17.41 kB / 1.334 GB, free: 10.05 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.394, allocations: 0 / 1.334 GB, free: 10.05 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.394, allocations: 8 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.394, allocations: 3.984 kB / 1.334 GB, free: 10.04 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007944/0.3948, allocations: 488.6 kB / 1.334 GB, free: 9.508 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.3948, allocations: 4 kB / 1.334 GB, free: 9.504 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001188/0.3949, allocations: 19.92 kB / 1.334 GB, free: 9.484 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.715e-06/0.3949, allocations: 4 kB / 1.334 GB, free: 9.48 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.016e-05/0.3949, allocations: 11.98 kB / 1.334 GB, free: 9.469 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.3949, allocations: 0 / 1.334 GB, free: 9.469 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.3949, allocations: 7.922 kB / 1.334 GB, free: 9.461 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00053/0.3955, allocations: 368.2 kB / 1.335 GB, free: 9.078 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.549e-05/0.3955, allocations: 16.22 kB / 1.335 GB, free: 9.062 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.051e-05/0.3955, allocations: 8.312 kB / 1.335 GB, free: 9.055 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001722/0.3957, allocations: 12.03 kB / 1.335 GB, free: 9.043 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.988e-05/0.3958, allocations: 23.91 kB / 1.335 GB, free: 9.02 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.3958, allocations: 4 kB / 1.335 GB, free: 9.016 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001314/0.3959, allocations: 144.2 kB / 1.335 GB, free: 8.875 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3959, allocations: 4 kB / 1.335 GB, free: 8.871 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003377/0.3962, allocations: 28 kB / 1.335 GB, free: 8.844 MB / 1.029 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.0001411/0.3964, allocations: 107.2 kB / 1.335 GB, free: 8.73 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003604/0.3967, allocations: 116.6 kB / 1.335 GB, free: 8.617 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.3967, allocations: 4 kB / 1.335 GB, free: 8.613 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001562/0.3969, allocations: 47.91 kB / 1.335 GB, free: 8.566 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005638/0.3975, allocations: 63.03 kB / 1.335 GB, free: 8.508 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006698/0.3981, allocations: 390.5 kB / 1.336 GB, free: 8.086 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.3985, allocations: 0.7203 MB / 1.336 GB, free: 7.34 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.171e-05/0.3986, allocations: 19.44 kB / 1.336 GB, free: 7.32 MB / 1.029 GB Notification: Performance of SimCode: time 3e-07/0.3986, allocations: 0 / 1.336 GB, free: 7.32 MB / 1.029 GB Notification: Performance of Templates: time 0.004333/0.4029, allocations: 2.152 MB / 1.338 GB, free: 5.18 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 11.602327210013755]