Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.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.001832/0.001832, allocations: 78.88 kB / 19.76 MB, free: 2.035 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.002277/0.002277, allocations: 157.3 kB / 23.01 MB, free: 4.945 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.493/1.493, allocations: 177.2 MB / 203.4 MB, free: 8.945 MB / 190.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 2.915/2.915, allocations: 394.2 MB / 0.6387 GB, free: 11.93 MB / 0.6075 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.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cons.y|booleanPulse.y|intDef.y_start|intDef.y|intDef.y_reset_in|intWitRes1.y_start|intWitRes1.y|intWitRes1.y_reset_in|intWitRes2.y_start|intWitRes2.y|intWitRes2.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.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.00256/0.00256, allocations: 63.91 kB / 1.009 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9808/0.9834, allocations: 181.8 MB / 1.187 GB, free: 16.23 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002164/0.9855, allocations: 0.8515 MB / 1.187 GB, free: 15.69 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.001422/0.987, allocations: 1.197 MB / 1.189 GB, free: 14.82 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.102e-05/0.987, allocations: 1.375 kB / 1.189 GB, free: 14.82 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 4.167e-05/0.9871, allocations: 9.094 kB / 1.189 GB, free: 14.81 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 8.028e-05/0.9871, allocations: 20.72 kB / 1.189 GB, free: 14.8 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005238/0.9877, allocations: 151.5 kB / 1.189 GB, free: 14.72 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0002223/0.9879, allocations: 167.5 kB / 1.189 GB, free: 14.64 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001353/0.988, allocations: 31.12 kB / 1.189 GB, free: 14.63 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001117/0.9881, allocations: 65.47 kB / 1.189 GB, free: 14.6 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001273/0.9883, allocations: 62.77 kB / 1.189 GB, free: 14.57 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 3.756e-05/0.9883, allocations: 19.09 kB / 1.189 GB, free: 14.57 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 7.952e-05/0.9884, allocations: 27.81 kB / 1.189 GB, free: 14.57 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 3.304e-05/0.9884, allocations: 20.98 kB / 1.189 GB, free: 14.55 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 8.291e-05/0.9885, allocations: 62.52 kB / 1.189 GB, free: 14.52 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0002665/0.9888, allocations: 170.2 kB / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.9888, allocations: 0 / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.994e-06/0.9888, allocations: 1.375 kB / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of Transformations before backend: time 1.156e-05/0.9888, allocations: 0 / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008035/0.9896, allocations: 416 kB / 1.19 GB, free: 14.08 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 4.794e-05/0.9896, allocations: 9.812 kB / 1.19 GB, free: 14.08 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.483e-05/0.9897, allocations: 17.94 kB / 1.19 GB, free: 14.07 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005914/0.9903, allocations: 177.9 kB / 1.19 GB, free: 13.93 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.765e-05/0.9903, allocations: 15.17 kB / 1.19 GB, free: 13.93 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.693e-05/0.9904, allocations: 17.67 kB / 1.19 GB, free: 13.92 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002508/0.9906, allocations: 91.94 kB / 1.19 GB, free: 13.87 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.9906, allocations: 3.938 kB / 1.19 GB, free: 13.86 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.9906, allocations: 1.672 kB / 1.19 GB, free: 13.86 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.012e-06/0.9906, allocations: 1.25 kB / 1.19 GB, free: 13.86 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001945/0.9908, allocations: 50.53 kB / 1.19 GB, free: 13.85 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006801/0.9915, allocations: 303.8 kB / 1.19 GB, free: 13.61 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001222/0.9916, allocations: 44.64 kB / 1.191 GB, free: 13.57 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.341e-05/0.9917, allocations: 21.64 kB / 1.191 GB, free: 13.57 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.722e-05/0.9918, allocations: 1.062 kB / 1.191 GB, free: 13.57 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002642/0.992, allocations: 103.1 kB / 1.191 GB, free: 13.5 MB / 1.076 GB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/0.992, allocations: 0 / 1.191 GB, free: 13.5 MB / 1.076 GB Notification: Performance of matching and sorting (n=10): time 0.0004537/0.9925, allocations: 138.5 kB / 1.191 GB, free: 13.44 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.003e-05/0.9925, allocations: 53.22 kB / 1.191 GB, free: 13.38 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00011/0.9926, allocations: 154.4 kB / 1.191 GB, free: 13.25 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 2.33e-05/0.9926, allocations: 29.55 kB / 1.191 GB, free: 13.22 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 6.231e-05/0.9927, allocations: 107.7 kB / 1.191 GB, free: 13.12 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.295e-05/0.9927, allocations: 33.06 kB / 1.191 GB, free: 13.1 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.051e-05/0.9928, allocations: 48.2 kB / 1.191 GB, free: 13.07 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 6.092e-05/0.9929, allocations: 324.8 kB / 1.192 GB, free: 12.75 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001755/0.993, allocations: 78.08 kB / 1.192 GB, free: 12.71 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002006/0.9932, allocations: 175.4 kB / 1.192 GB, free: 12.54 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002998/0.9935, allocations: 193.8 kB / 1.192 GB, free: 12.38 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.9935, allocations: 1.344 kB / 1.192 GB, free: 12.38 MB / 1.076 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005018/0.994, allocations: 282.4 kB / 1.192 GB, free: 12.21 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 4.074e-05/0.9941, allocations: 35.64 kB / 1.192 GB, free: 12.18 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.9941, allocations: 2.594 kB / 1.192 GB, free: 12.18 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.534e-05/0.9941, allocations: 4.469 kB / 1.192 GB, free: 12.18 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.9942, allocations: 35.36 kB / 1.192 GB, free: 12.17 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.808e-06/0.9943, allocations: 6.969 kB / 1.192 GB, free: 12.17 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002319/0.9945, allocations: 37.19 kB / 1.192 GB, free: 12.16 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.792e-05/0.9945, allocations: 11.11 kB / 1.192 GB, free: 12.16 MB / 1.076 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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 8.113e-05/0.9946, allocations: 138.6 kB / 1.192 GB, free: 12.03 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.897e-05/0.9946, allocations: 10.16 kB / 1.192 GB, free: 12.02 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.636e-05/0.9946, allocations: 16.08 kB / 1.192 GB, free: 12.01 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.9947, allocations: 5.188 kB / 1.192 GB, free: 12.01 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.9947, allocations: 1.344 kB / 1.192 GB, free: 12.01 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.9947, allocations: 4.594 kB / 1.192 GB, free: 12 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004687/0.9951, allocations: 329.7 kB / 1.193 GB, free: 11.74 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.9951, allocations: 1.031 kB / 1.193 GB, free: 11.74 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.374e-05/0.9952, allocations: 16.83 kB / 1.193 GB, free: 11.74 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.9952, allocations: 1.062 kB / 1.193 GB, free: 11.74 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.9952, allocations: 1.844 kB / 1.193 GB, free: 11.74 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.9952, allocations: 9 kB / 1.193 GB, free: 11.73 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.9952, allocations: 0.7031 kB / 1.193 GB, free: 11.73 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003869/0.9956, allocations: 240 kB / 1.193 GB, free: 11.57 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 1.485e-05/0.9956, allocations: 8.031 kB / 1.193 GB, free: 11.57 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.968e-05/0.9957, allocations: 5.891 kB / 1.193 GB, free: 11.56 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.46e-05/0.9958, allocations: 14.84 kB / 1.193 GB, free: 11.55 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.731e-05/0.9958, allocations: 14.89 kB / 1.193 GB, free: 11.55 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.159e-05/0.9958, allocations: 5.391 kB / 1.193 GB, free: 11.55 MB / 1.076 GB Notification: Performance of sorting global known variables: time 5.797e-05/0.9959, allocations: 111.3 kB / 1.193 GB, free: 11.46 MB / 1.076 GB Notification: Performance of sort global known variables: time 9e-08/0.9959, allocations: 0 / 1.193 GB, free: 11.46 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002945/0.9962, allocations: 33 kB / 1.193 GB, free: 11.45 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intWitRes2.y,intWitRes1.y,intDef.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * 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.0001385/0.9963, allocations: 103.5 kB / 1.193 GB, free: 11.36 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0003931/0.9967, allocations: 196.5 kB / 1.194 GB, free: 11.24 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.9967, allocations: 1.156 kB / 1.194 GB, free: 11.24 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.000125/0.9968, allocations: 40.95 kB / 1.194 GB, free: 11.23 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002995/0.9971, allocations: 21.39 kB / 1.194 GB, free: 11.22 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005313/0.9977, allocations: 269.9 kB / 1.194 GB, free: 11.02 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.836e-05/0.9977, allocations: 95.2 kB / 1.194 GB, free: 10.95 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 7.277e-05/0.9978, allocations: 15.73 kB / 1.194 GB, free: 10.94 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.386e-05/0.9979, allocations: 16.7 kB / 1.194 GB, free: 10.93 MB / 1.076 GB Notification: Performance of SimCode: time 3.2e-07/0.9979, allocations: 0 / 1.194 GB, free: 10.93 MB / 1.076 GB Notification: Performance of Templates: time 0.005519/1.003, allocations: 1.754 MB / 1.196 GB, free: 10.7 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset -abortSlowSimulation -alarm=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.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.247634229017422]