Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001822/0.001822, allocations: 108.8 kB / 18.93 MB, free: 2.945 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00212/0.00212, allocations: 191.5 kB / 22.23 MB, free: 5.16 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.632/1.632, allocations: 225.6 MB / 251 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo): time 3.307/3.307, allocations: 496 MB / 0.7835 GB, free: 33.72 MB / 0.6231 GB
"
[Timeout remaining time 176]
Using package Buildings with version 12.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-maint.12.x/package.mo)
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_12_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_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.002075/0.002075, allocations: 65.08 kB / 1.138 GB, free: 33.76 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.4478/0.4499, allocations: 173.6 MB / 1.307 GB, free: 1.77 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002788/0.4527, allocations: 0.9055 MB / 1.308 GB, free: 0.8633 MB / 0.9981 GB
Notification: Performance of NFInst.instExpressions: time 0.001789/0.4545, allocations: 1.19 MB / 1.309 GB, free: 15.66 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 7.198e-05/0.4545, allocations: 0 / 1.309 GB, free: 15.66 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 4.054e-05/0.4546, allocations: 7.875 kB / 1.309 GB, free: 15.65 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 9.348e-05/0.4547, allocations: 19.8 kB / 1.309 GB, free: 15.63 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.000579/0.4552, allocations: 151 kB / 1.31 GB, free: 15.49 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0002486/0.4555, allocations: 167.6 kB / 1.31 GB, free: 15.32 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001359/0.4556, allocations: 25.3 kB / 1.31 GB, free: 15.3 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.4557, allocations: 71.81 kB / 1.31 GB, free: 15.23 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001296/0.4559, allocations: 67.75 kB / 1.31 GB, free: 15.16 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 3.028e-05/0.4559, allocations: 12 kB / 1.31 GB, free: 15.15 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 7.884e-05/0.456, allocations: 27.98 kB / 1.31 GB, free: 15.12 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 3.759e-05/0.456, allocations: 27.91 kB / 1.31 GB, free: 15.09 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 9.061e-05/0.4561, allocations: 67.7 kB / 1.31 GB, free: 15.03 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0002567/0.4564, allocations: 171.3 kB / 1.31 GB, free: 14.86 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.4564, allocations: 0 / 1.31 GB, free: 14.86 MB / 1.014 GB
Notification: Performance of FrontEnd: time 2.144e-06/0.4564, allocations: 4 kB / 1.31 GB, free: 14.86 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 5.4e-06/0.4564, allocations: 4 kB / 1.31 GB, free: 14.85 MB / 1.014 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.0007608/0.4571, allocations: 410.1 kB / 1.311 GB, free: 14.4 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.4572, allocations: 12.92 kB / 1.311 GB, free: 14.39 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 6.552e-05/0.4572, allocations: 20.84 kB / 1.311 GB, free: 14.37 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004987/0.4577, allocations: 186.5 kB / 1.311 GB, free: 14.16 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.164e-05/0.4578, allocations: 12.38 kB / 1.311 GB, free: 14.15 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.881e-05/0.4578, allocations: 24.2 kB / 1.311 GB, free: 14.13 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000216/0.458, allocations: 86.2 kB / 1.311 GB, free: 14.04 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.458, allocations: 3.938 kB / 1.311 GB, free: 14.04 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.458, allocations: 4 kB / 1.311 GB, free: 14.03 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.4581, allocations: 0 / 1.311 GB, free: 14.03 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001706/0.4582, allocations: 51.95 kB / 1.311 GB, free: 13.98 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007135/0.4589, allocations: 355.6 kB / 1.311 GB, free: 13.59 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001335/0.4591, allocations: 34.55 kB / 1.311 GB, free: 13.55 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 9.01e-05/0.4592, allocations: 28.97 kB / 1.311 GB, free: 13.52 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 2.08e-05/0.4592, allocations: 4 kB / 1.311 GB, free: 13.51 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003224/0.4595, allocations: 111.2 kB / 1.311 GB, free: 13.39 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=10): time 1.714e-06/0.4595, allocations: 0 / 1.311 GB, free: 13.39 MB / 1.014 GB
Notification: Performance of matching and sorting (n=10): time 0.0004444/0.4599, allocations: 133.5 kB / 1.312 GB, free: 13.25 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.46, allocations: 59.34 kB / 1.312 GB, free: 13.18 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.4601, allocations: 139.7 kB / 1.312 GB, free: 13.04 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 3.782e-05/0.4602, allocations: 37.69 kB / 1.312 GB, free: 13 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 8.617e-05/0.4603, allocations: 107.9 kB / 1.312 GB, free: 12.89 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 3.334e-05/0.4603, allocations: 35.78 kB / 1.312 GB, free: 12.85 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 8.175e-05/0.4604, allocations: 45.69 kB / 1.312 GB, free: 12.8 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.0001494/0.4605, allocations: 322.8 kB / 1.312 GB, free: 12.48 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001562/0.4607, allocations: 47.97 kB / 1.312 GB, free: 12.43 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002146/0.4609, allocations: 133.4 kB / 1.312 GB, free: 12.26 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003342/0.4612, allocations: 200.7 kB / 1.313 GB, free: 12.02 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.4612, allocations: 0 / 1.313 GB, free: 12.02 MB / 1.014 GB
Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005575/0.4618, allocations: 250.9 kB / 1.313 GB, free: 11.76 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 4.73e-05/0.4618, allocations: 35.58 kB / 1.313 GB, free: 11.72 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.4618, allocations: 4 kB / 1.313 GB, free: 11.72 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.4619, allocations: 4 kB / 1.313 GB, free: 11.71 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.462, allocations: 27.91 kB / 1.313 GB, free: 11.69 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.299e-05/0.462, allocations: 8.312 kB / 1.313 GB, free: 11.68 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002165/0.4622, allocations: 47.86 kB / 1.313 GB, free: 11.63 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.072e-05/0.4622, allocations: 11.98 kB / 1.313 GB, free: 11.62 MB / 1.014 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 0.0001345/0.4624, allocations: 133.7 kB / 1.313 GB, free: 11.48 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.986e-05/0.4624, allocations: 11.95 kB / 1.313 GB, free: 11.47 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.379e-05/0.4624, allocations: 16.7 kB / 1.313 GB, free: 11.45 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.4624, allocations: 0 / 1.313 GB, free: 11.45 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.4624, allocations: 15.88 kB / 1.313 GB, free: 11.44 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.4624, allocations: 0 / 1.313 GB, free: 11.44 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007596/0.4632, allocations: 369.9 kB / 1.314 GB, free: 11.03 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.4632, allocations: 96 / 1.314 GB, free: 11.03 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.034e-05/0.4633, allocations: 15.92 kB / 1.314 GB, free: 11.01 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 7.815e-06/0.4633, allocations: 7.938 kB / 1.314 GB, free: 11 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.4633, allocations: 0 / 1.314 GB, free: 11 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.4633, allocations: 3.984 kB / 1.314 GB, free: 11 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.4633, allocations: 4 kB / 1.314 GB, free: 11 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004362/0.4638, allocations: 235.4 kB / 1.314 GB, free: 10.75 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.71e-05/0.4638, allocations: 11.89 kB / 1.314 GB, free: 10.74 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.089e-05/0.4638, allocations: 4.031 kB / 1.314 GB, free: 10.73 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.044e-05/0.4639, allocations: 4 kB / 1.314 GB, free: 10.73 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 5.498e-05/0.4639, allocations: 19.92 kB / 1.314 GB, free: 10.71 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.4639, allocations: 7.984 kB / 1.314 GB, free: 10.7 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 8.837e-05/0.464, allocations: 108.4 kB / 1.314 GB, free: 10.6 MB / 1.014 GB
Notification: Performance of sort global known variables: time 7e-08/0.464, allocations: 0 / 1.314 GB, free: 10.6 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002989/0.4643, allocations: 31.94 kB / 1.314 GB, free: 10.57 MB / 1.014 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.0001905/0.4645, allocations: 104 kB / 1.314 GB, free: 10.46 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0004119/0.4649, allocations: 167.2 kB / 1.314 GB, free: 10.28 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.4649, allocations: 0 / 1.314 GB, free: 10.28 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001176/0.4651, allocations: 35.91 kB / 1.314 GB, free: 10.25 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003126/0.4654, allocations: 20.73 kB / 1.314 GB, free: 10.23 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006805/0.4661, allocations: 265.2 kB / 1.315 GB, free: 9.941 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005272/0.4666, allocations: 0.7083 MB / 1.315 GB, free: 9.207 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 8.908e-05/0.4667, allocations: 20.58 kB / 1.315 GB, free: 9.188 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.578e-05/0.4667, allocations: 15.44 kB / 1.315 GB, free: 9.172 MB / 1.014 GB
Notification: Performance of SimCode: time 3.2e-07/0.4667, allocations: 0 / 1.315 GB, free: 9.172 MB / 1.014 GB
Notification: Performance of Templates: time 0.006092/0.4728, allocations: 1.707 MB / 1.317 GB, free: 7.48 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.makefile [Timeout 300]
(rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & ./Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset  -abortSlowSimulation -alarm=400  -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) [Timeout 400]
diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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.722593791782856]