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.001616/0.001616, allocations: 101.8 kB / 18.83 MB, free: 3.02 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.002092/0.002092, allocations: 191.5 kB / 22.1 MB, free: 4.031 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.534/1.534, allocations: 225.6 MB / 250.8 MB, free: 2.906 MB / 190.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.01/3.01, allocations: 495.8 MB / 0.7831 GB, free: 12.24 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.002202/0.002202, allocations: 71.88 kB / 1.137 GB, free: 12.12 MB / 0.92 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 1.195/1.197, allocations: 173.6 MB / 1.307 GB, free: 33.74 MB / 1.061 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002027/1.199, allocations: 0.8931 MB / 1.308 GB, free: 33.15 MB / 1.061 GB
Notification: Performance of NFInst.instExpressions: time 0.001225/1.2, allocations: 1.192 MB / 1.309 GB, free: 32.28 MB / 1.061 GB
Notification: Performance of NFInst.updateImplicitVariability: time 6.453e-05/1.2, allocations: 0 / 1.309 GB, free: 32.28 MB / 1.061 GB
Notification: Performance of NFTyping.typeComponents: time 3.563e-05/1.2, allocations: 11.3 kB / 1.309 GB, free: 32.27 MB / 1.061 GB
Notification: Performance of NFTyping.typeBindings: time 8.666e-05/1.2, allocations: 14.77 kB / 1.309 GB, free: 32.26 MB / 1.061 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0005112/1.201, allocations: 157.2 kB / 1.309 GB, free: 32.18 MB / 1.061 GB
Notification: Performance of NFFlatten.flatten: time 0.0001899/1.201, allocations: 167.7 kB / 1.309 GB, free: 32.11 MB / 1.061 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001213/1.201, allocations: 25.47 kB / 1.309 GB, free: 32.09 MB / 1.061 GB
Notification: Performance of NFEvalConstants.evaluate: time 9.538e-05/1.201, allocations: 74.89 kB / 1.309 GB, free: 32.06 MB / 1.061 GB
Notification: Performance of NFSimplifyModel.simplify: time 9.942e-05/1.201, allocations: 69.69 kB / 1.309 GB, free: 32.02 MB / 1.061 GB
Notification: Performance of NFPackage.collectConstants: time 3.108e-05/1.201, allocations: 15.72 kB / 1.309 GB, free: 32.02 MB / 1.061 GB
Notification: Performance of NFFlatten.collectFunctions: time 6.706e-05/1.201, allocations: 27.64 kB / 1.309 GB, free: 32.02 MB / 1.061 GB
Notification: Performance of NFScalarize.scalarize: time 2.979e-05/1.201, allocations: 20.75 kB / 1.309 GB, free: 32.01 MB / 1.061 GB
Notification: Performance of NFVerifyModel.verify: time 6.682e-05/1.201, allocations: 67.03 kB / 1.309 GB, free: 31.97 MB / 1.061 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001901/1.202, allocations: 169.7 kB / 1.31 GB, free: 31.91 MB / 1.061 GB
Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/1.202, allocations: 0 / 1.31 GB, free: 31.91 MB / 1.061 GB
Notification: Performance of FrontEnd: time 2.124e-06/1.202, allocations: 3.938 kB / 1.31 GB, free: 31.91 MB / 1.061 GB
Notification: Performance of Transformations before backend: time 5.279e-06/1.202, allocations: 0 / 1.31 GB, free: 31.91 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: 16
 * Number of variables: 16
Notification: Performance of Generate backend data structure: time 0.0006536/1.202, allocations: 420.7 kB / 1.31 GB, free: 31.53 MB / 1.061 GB
Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/1.202, allocations: 10.38 kB / 1.31 GB, free: 31.53 MB / 1.061 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 6.006e-05/1.202, allocations: 21.09 kB / 1.31 GB, free: 31.52 MB / 1.061 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004793/1.203, allocations: 188.7 kB / 1.31 GB, free: 31.37 MB / 1.061 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/1.203, allocations: 5.625 kB / 1.31 GB, free: 31.37 MB / 1.061 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.393e-05/1.203, allocations: 21.02 kB / 1.31 GB, free: 31.36 MB / 1.061 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002072/1.203, allocations: 88.36 kB / 1.31 GB, free: 31.31 MB / 1.061 GB
Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/1.203, allocations: 7.875 kB / 1.31 GB, free: 31.3 MB / 1.061 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.294e-05/1.203, allocations: 2.812 kB / 1.31 GB, free: 31.3 MB / 1.061 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/1.203, allocations: 2.625 kB / 1.31 GB, free: 31.3 MB / 1.061 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001735/1.203, allocations: 48.52 kB / 1.31 GB, free: 31.29 MB / 1.061 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000615/1.204, allocations: 356.6 kB / 1.311 GB, free: 31 MB / 1.061 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001209/1.204, allocations: 35.66 kB / 1.311 GB, free: 30.98 MB / 1.061 GB
Notification: Performance of preOpt resolveLoops (simulation): time 8.745e-05/1.204, allocations: 22.42 kB / 1.311 GB, free: 30.97 MB / 1.061 GB
Notification: Performance of preOpt evalFunc (simulation): time 1.989e-05/1.204, allocations: 0 / 1.311 GB, free: 30.97 MB / 1.061 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000194/1.204, allocations: 108.8 kB / 1.311 GB, free: 30.89 MB / 1.061 GB
Notification: Performance of pre-optimization done (n=10): time 1.292e-06/1.204, allocations: 0 / 1.311 GB, free: 30.89 MB / 1.061 GB
Notification: Performance of matching and sorting (n=10): time 0.0004104/1.205, allocations: 134.6 kB / 1.311 GB, free: 30.84 MB / 1.061 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 3.123e-05/1.205, allocations: 58.12 kB / 1.311 GB, free: 30.77 MB / 1.061 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.15e-05/1.205, allocations: 148.5 kB / 1.311 GB, free: 30.65 MB / 1.061 GB
Notification: Performance of collectPreVariables (initialization): time 2.267e-05/1.205, allocations: 35.83 kB / 1.311 GB, free: 30.61 MB / 1.061 GB
Notification: Performance of collectInitialEqns (initialization): time 4.97e-05/1.205, allocations: 112.1 kB / 1.311 GB, free: 30.51 MB / 1.061 GB
Notification: Performance of collectInitialBindings (initialization): time 1.777e-05/1.205, allocations: 26.69 kB / 1.311 GB, free: 30.49 MB / 1.061 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.823e-05/1.205, allocations: 47.89 kB / 1.311 GB, free: 30.46 MB / 1.061 GB
Notification: Performance of setup shared object (initialization): time 5.034e-05/1.205, allocations: 325 kB / 1.312 GB, free: 30.14 MB / 1.061 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001485/1.205, allocations: 46.64 kB / 1.312 GB, free: 30.13 MB / 1.061 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/1.205, allocations: 128.6 kB / 1.312 GB, free: 30.01 MB / 1.061 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000286/1.206, allocations: 203 kB / 1.312 GB, free: 29.83 MB / 1.061 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/1.206, allocations: 2.938 kB / 1.312 GB, free: 29.83 MB / 1.061 GB
Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004426/1.206, allocations: 248.3 kB / 1.312 GB, free: 29.7 MB / 1.061 GB
Notification: Performance of prepare postOptimizeDAE: time 2.938e-05/1.206, allocations: 41.75 kB / 1.312 GB, free: 29.67 MB / 1.061 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/1.206, allocations: 6.938 kB / 1.312 GB, free: 29.66 MB / 1.061 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.836e-05/1.206, allocations: 5.562 kB / 1.312 GB, free: 29.66 MB / 1.061 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001057/1.206, allocations: 20.86 kB / 1.312 GB, free: 29.66 MB / 1.061 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/1.206, allocations: 13.92 kB / 1.312 GB, free: 29.66 MB / 1.061 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002225/1.207, allocations: 41.89 kB / 1.312 GB, free: 29.65 MB / 1.061 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.353e-05/1.207, allocations: 12.44 kB / 1.312 GB, free: 29.64 MB / 1.061 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 7.935e-05/1.207, allocations: 132.5 kB / 1.313 GB, free: 29.52 MB / 1.061 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.747e-05/1.207, allocations: 17.08 kB / 1.313 GB, free: 29.51 MB / 1.061 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.434e-05/1.207, allocations: 11.38 kB / 1.313 GB, free: 29.5 MB / 1.061 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/1.207, allocations: 0 / 1.313 GB, free: 29.5 MB / 1.061 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/1.207, allocations: 6.594 kB / 1.313 GB, free: 29.49 MB / 1.061 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/1.207, allocations: 0 / 1.313 GB, free: 29.49 MB / 1.061 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004541/1.207, allocations: 369.7 kB / 1.313 GB, free: 29.19 MB / 1.061 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/1.207, allocations: 2.812 kB / 1.313 GB, free: 29.19 MB / 1.061 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.117e-05/1.207, allocations: 18.84 kB / 1.313 GB, free: 29.18 MB / 1.061 GB
Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/1.207, allocations: 3.938 kB / 1.313 GB, free: 29.18 MB / 1.061 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.167e-05/1.207, allocations: 2.812 kB / 1.313 GB, free: 29.18 MB / 1.061 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/1.207, allocations: 0 / 1.313 GB, free: 29.18 MB / 1.061 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/1.207, allocations: 0 / 1.313 GB, free: 29.18 MB / 1.061 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003739/1.208, allocations: 246.7 kB / 1.313 GB, free: 29.01 MB / 1.061 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.262e-05/1.208, allocations: 10.61 kB / 1.313 GB, free: 29 MB / 1.061 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.021e-05/1.208, allocations: 2.281 kB / 1.313 GB, free: 29 MB / 1.061 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.302e-05/1.208, allocations: 12.42 kB / 1.313 GB, free: 29 MB / 1.061 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.141e-05/1.208, allocations: 6.281 kB / 1.313 GB, free: 29 MB / 1.061 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.627e-06/1.208, allocations: 2.188 kB / 1.313 GB, free: 29 MB / 1.061 GB
Notification: Performance of sorting global known variables: time 4.542e-05/1.208, allocations: 111 kB / 1.313 GB, free: 28.91 MB / 1.061 GB
Notification: Performance of sort global known variables: time 7e-08/1.208, allocations: 0 / 1.313 GB, free: 28.91 MB / 1.061 GB
Notification: Performance of remove unused functions: time 0.0002848/1.208, allocations: 34.8 kB / 1.313 GB, free: 28.9 MB / 1.061 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.000144/1.208, allocations: 112.1 kB / 1.314 GB, free: 28.81 MB / 1.061 GB
Notification: Performance of simCode: created initialization part: time 0.0003672/1.209, allocations: 168.2 kB / 1.314 GB, free: 28.71 MB / 1.061 GB
Notification: Performance of simCode: created event and clocks part: time 2.595e-06/1.209, allocations: 0 / 1.314 GB, free: 28.71 MB / 1.061 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001127/1.209, allocations: 37.14 kB / 1.314 GB, free: 28.71 MB / 1.061 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/1.209, allocations: 26 kB / 1.314 GB, free: 28.7 MB / 1.061 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005043/1.21, allocations: 267.5 kB / 1.314 GB, free: 28.5 MB / 1.061 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001209/1.21, allocations: 0.7129 MB / 1.315 GB, free: 27.8 MB / 1.061 GB
Notification: Performance of simCode: alias equations: time 5.731e-05/1.21, allocations: 17.06 kB / 1.315 GB, free: 27.79 MB / 1.061 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.98e-05/1.21, allocations: 13.16 kB / 1.315 GB, free: 27.79 MB / 1.061 GB
Notification: Performance of SimCode: time 3.81e-07/1.21, allocations: 0 / 1.315 GB, free: 27.79 MB / 1.061 GB
Notification: Performance of Templates: time 0.004807/1.215, allocations: 1.699 MB / 1.316 GB, free: 27.62 MB / 1.061 GB
"
[Timeout remaining time 299]
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.979160841554403]