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.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.001352/0.001352, allocations: 113.9 kB / 18.94 MB, free: 2.953 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.001429/0.001429, allocations: 189.3 kB / 22.23 MB, free: 5.137 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.47/1.47, allocations: 225.6 MB / 251 MB, free: 13.05 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.179/3.179, allocations: 496 MB / 0.7835 GB, free: 33.63 MB / 0.6231 GB
"
[Timeout remaining time 177]
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.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: Performance of FrontEnd - loaded program: time 0.002093/0.002093, allocations: 66.52 kB / 1.138 GB, free: 33.74 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3233, allocations: 173.6 MB / 1.307 GB, free: 1.809 MB / 0.9981 GB
Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003219/0.3265, allocations: 1.844 MB / 1.309 GB, free: 15.95 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.001072/0.3276, allocations: 0.5533 MB / 1.31 GB, free: 15.39 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 9.456e-05/0.3276, allocations: 3.938 kB / 1.31 GB, free: 15.39 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001434/0.3278, allocations: 23.73 kB / 1.31 GB, free: 15.37 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 8.382e-05/0.3279, allocations: 31.72 kB / 1.31 GB, free: 15.34 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0002318/0.3281, allocations: 59.88 kB / 1.31 GB, free: 15.28 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0002504/0.3284, allocations: 179.5 kB / 1.31 GB, free: 15.1 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001405/0.3285, allocations: 33.73 kB / 1.31 GB, free: 15.07 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 9.498e-05/0.3286, allocations: 63.72 kB / 1.31 GB, free: 15 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 8.491e-05/0.3287, allocations: 59.62 kB / 1.31 GB, free: 14.95 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 3.397e-05/0.3287, allocations: 12 kB / 1.31 GB, free: 14.93 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 2.172e-05/0.3287, allocations: 8 kB / 1.31 GB, free: 14.93 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 3.765e-05/0.3288, allocations: 27.92 kB / 1.31 GB, free: 14.9 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 7.882e-05/0.3288, allocations: 63.61 kB / 1.31 GB, free: 14.84 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.000203/0.3291, allocations: 135.3 kB / 1.31 GB, free: 14.7 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3291, allocations: 0 / 1.31 GB, free: 14.7 MB / 1.014 GB
Notification: Performance of FrontEnd: time 4.158e-06/0.3291, allocations: 4 kB / 1.31 GB, free: 14.7 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 9.277e-06/0.3291, allocations: 0 / 1.31 GB, free: 14.7 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: 24
 * Number of variables: 24
Notification: Performance of Generate backend data structure: time 0.0007718/0.3298, allocations: 439 kB / 1.311 GB, free: 14.23 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.329e-05/0.3299, allocations: 8.922 kB / 1.311 GB, free: 14.23 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.492e-05/0.3299, allocations: 24.8 kB / 1.311 GB, free: 14.2 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003128/0.3303, allocations: 167 kB / 1.311 GB, free: 14.02 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/0.3303, allocations: 12.38 kB / 1.311 GB, free: 14 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.395e-05/0.3303, allocations: 16.38 kB / 1.311 GB, free: 13.99 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003234/0.3306, allocations: 152.8 kB / 1.311 GB, free: 13.82 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.3306, allocations: 0 / 1.311 GB, free: 13.82 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/0.3307, allocations: 7.984 kB / 1.311 GB, free: 13.81 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.3307, allocations: 4 kB / 1.311 GB, free: 13.81 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002454/0.3309, allocations: 69.61 kB / 1.311 GB, free: 13.74 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009936/0.3319, allocations: 0.7112 MB / 1.312 GB, free: 12.97 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001625/0.3321, allocations: 42.55 kB / 1.312 GB, free: 12.92 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.3322, allocations: 36.83 kB / 1.312 GB, free: 12.88 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 1.691e-05/0.3322, allocations: 0 / 1.312 GB, free: 12.88 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002516/0.3325, allocations: 126.7 kB / 1.312 GB, free: 12.73 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=11): time 1.133e-06/0.3325, allocations: 3.938 kB / 1.312 GB, free: 12.73 MB / 1.014 GB
Notification: Performance of matching and sorting (n=11): time 0.0005473/0.333, allocations: 169.7 kB / 1.312 GB, free: 12.56 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.257e-05/0.3331, allocations: 128.8 kB / 1.312 GB, free: 12.4 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002008/0.3333, allocations: 199.2 kB / 1.313 GB, free: 12.2 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.609e-05/0.3333, allocations: 29.7 kB / 1.313 GB, free: 12.16 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.3334, allocations: 135.9 kB / 1.313 GB, free: 12.03 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 4.816e-05/0.3335, allocations: 39.69 kB / 1.313 GB, free: 11.99 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 7.579e-05/0.3335, allocations: 37.72 kB / 1.313 GB, free: 11.95 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.00019/0.3337, allocations: 330.8 kB / 1.313 GB, free: 11.61 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.3339, allocations: 40.03 kB / 1.313 GB, free: 11.57 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002299/0.3341, allocations: 152.2 kB / 1.313 GB, free: 11.38 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.000402/0.3345, allocations: 206.4 kB / 1.313 GB, free: 11.12 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.796e-06/0.3345, allocations: 0 / 1.313 GB, free: 11.12 MB / 1.014 GB
Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004375/0.3349, allocations: 205.5 kB / 1.314 GB, free: 10.91 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.335, allocations: 8 kB / 1.314 GB, free: 10.91 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.015e-05/0.335, allocations: 4 kB / 1.314 GB, free: 10.9 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.977e-05/0.335, allocations: 4 kB / 1.314 GB, free: 10.9 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001537/0.3352, allocations: 35.91 kB / 1.314 GB, free: 10.86 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.498e-05/0.3352, allocations: 7.938 kB / 1.314 GB, free: 10.86 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001549/0.3353, allocations: 27.88 kB / 1.314 GB, free: 10.83 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.963e-05/0.3353, allocations: 12.19 kB / 1.314 GB, free: 10.82 MB / 1.014 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.0001555/0.3355, allocations: 147.2 kB / 1.314 GB, free: 10.66 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 3.725e-05/0.3355, allocations: 23.84 kB / 1.314 GB, free: 10.64 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.581e-05/0.3356, allocations: 21.41 kB / 1.314 GB, free: 10.62 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.3356, allocations: 0 / 1.314 GB, free: 10.62 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.993e-06/0.3356, allocations: 0 / 1.314 GB, free: 10.62 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.3356, allocations: 11.92 kB / 1.314 GB, free: 10.61 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008646/0.3365, allocations: 492.6 kB / 1.314 GB, free: 10.07 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3365, allocations: 0 / 1.314 GB, free: 10.07 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001302/0.3366, allocations: 15.98 kB / 1.314 GB, free: 10.06 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.3366, allocations: 4 kB / 1.314 GB, free: 10.05 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.572e-05/0.3366, allocations: 4 kB / 1.314 GB, free: 10.05 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.104e-06/0.3366, allocations: 11.92 kB / 1.314 GB, free: 10.04 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3366, allocations: 3.938 kB / 1.314 GB, free: 10.04 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005361/0.3372, allocations: 352.3 kB / 1.315 GB, free: 9.668 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 3.283e-05/0.3372, allocations: 19.84 kB / 1.315 GB, free: 9.648 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.754e-05/0.3372, allocations: 4 kB / 1.315 GB, free: 9.645 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.3374, allocations: 19.97 kB / 1.315 GB, free: 9.625 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 6.048e-05/0.3375, allocations: 19.91 kB / 1.315 GB, free: 9.605 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.3375, allocations: 8.062 kB / 1.315 GB, free: 9.598 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 0.0001244/0.3376, allocations: 144.4 kB / 1.315 GB, free: 9.457 MB / 1.014 GB
Notification: Performance of sort global known variables: time 8.1e-08/0.3376, allocations: 0 / 1.315 GB, free: 9.457 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0003356/0.3379, allocations: 27.95 kB / 1.315 GB, free: 9.43 MB / 1.014 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.0001233/0.3381, allocations: 103.2 kB / 1.315 GB, free: 9.32 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0003458/0.3384, allocations: 115.7 kB / 1.315 GB, free: 9.207 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3384, allocations: 0 / 1.315 GB, free: 9.207 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 0.0001503/0.3386, allocations: 52.84 kB / 1.315 GB, free: 9.156 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005773/0.3391, allocations: 76.11 kB / 1.315 GB, free: 9.086 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007395/0.3399, allocations: 356.5 kB / 1.316 GB, free: 8.703 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004328/0.3403, allocations: 0.7281 MB / 1.316 GB, free: 7.949 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 9.07e-05/0.3404, allocations: 13.48 kB / 1.316 GB, free: 7.934 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.934e-05/0.3405, allocations: 23.44 kB / 1.316 GB, free: 7.91 MB / 1.014 GB
Notification: Performance of SimCode: time 4.9e-07/0.3405, allocations: 0 / 1.316 GB, free: 7.91 MB / 1.014 GB
Notification: Performance of Templates: time 0.005712/0.3462, allocations: 2.111 MB / 1.319 GB, free: 5.828 MB / 1.014 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/jenkins/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: 8.817707241512835]