Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.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.001448/0.001448, allocations: 112.7 kB / 18.94 MB, free: 2.93 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.001791/0.001791, allocations: 189.1 kB / 22.22 MB, free: 5.105 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.483/1.483, allocations: 225.6 MB / 251 MB, free: 13.02 MB / 206.1 MB
"
[Timeout remaining time 178]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.1-master/package.mo): time 3.268/3.268, allocations: 0.4893 GB / 0.7884 GB, free: 33.1 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-master/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.Routing.Validation.BooleanScalarReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booRep.u|booRep.y.1.|booRep.y.2.|booRep.y.3.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator")
translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booRep.u|booRep.y.1.|booRep.y.2.|booRep.y.3.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator") [Timeout 300]
"Notification: Performance of FrontEnd - loaded program: time 0.00196/0.00196, allocations: 72.06 kB / 1.145 GB, free: 30.77 MB / 0.9044 GB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3624/0.3644, allocations: 174.9 MB / 1.316 GB, free: 9.742 MB / 1.014 GB
Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.00224/0.3666, allocations: 0.636 MB / 1.317 GB, free: 9.109 MB / 1.014 GB
Notification: Performance of NFInst.instExpressions: time 0.001784/0.3684, allocations: 1.128 MB / 1.318 GB, free: 7.969 MB / 1.014 GB
Notification: Performance of NFInst.updateImplicitVariability: time 6.13e-05/0.3685, allocations: 3.938 kB / 1.318 GB, free: 7.965 MB / 1.014 GB
Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.3686, allocations: 0 / 1.318 GB, free: 7.965 MB / 1.014 GB
Notification: Performance of NFTyping.typeBindings: time 3.704e-05/0.3686, allocations: 11.92 kB / 1.318 GB, free: 7.953 MB / 1.014 GB
Notification: Performance of NFTyping.typeClassSections: time 0.0005545/0.3692, allocations: 118 kB / 1.318 GB, free: 7.84 MB / 1.014 GB
Notification: Performance of NFFlatten.flatten: time 0.0001939/0.3694, allocations: 91.89 kB / 1.318 GB, free: 7.75 MB / 1.014 GB
Notification: Performance of NFFlatten.resolveConnections: time 9.405e-05/0.3695, allocations: 0 / 1.318 GB, free: 7.75 MB / 1.014 GB
Notification: Performance of NFEvalConstants.evaluate: time 8.007e-05/0.3695, allocations: 43.89 kB / 1.318 GB, free: 7.707 MB / 1.014 GB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001374/0.3697, allocations: 35.91 kB / 1.318 GB, free: 7.672 MB / 1.014 GB
Notification: Performance of NFPackage.collectConstants: time 2.891e-05/0.3697, allocations: 8 kB / 1.318 GB, free: 7.664 MB / 1.014 GB
Notification: Performance of NFFlatten.collectFunctions: time 7.969e-05/0.3698, allocations: 23.92 kB / 1.318 GB, free: 7.641 MB / 1.014 GB
Notification: Performance of NFScalarize.scalarize: time 6.49e-05/0.3698, allocations: 11.98 kB / 1.318 GB, free: 7.629 MB / 1.014 GB
Notification: Performance of NFVerifyModel.verify: time 7.231e-05/0.3699, allocations: 35.91 kB / 1.318 GB, free: 7.594 MB / 1.014 GB
Notification: Performance of NFConvertDAE.convert: time 0.0001809/0.3701, allocations: 83.78 kB / 1.318 GB, free: 7.512 MB / 1.014 GB
Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3701, allocations: 3.938 kB / 1.318 GB, free: 7.508 MB / 1.014 GB
Notification: Performance of FrontEnd: time 1.653e-06/0.3701, allocations: 0 / 1.318 GB, free: 7.508 MB / 1.014 GB
Notification: Performance of Transformations before backend: time 1.087e-05/0.3701, allocations: 0 / 1.318 GB, free: 7.508 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: 5
 * Number of variables: 5
Notification: Performance of Generate backend data structure: time 0.0005813/0.3707, allocations: 307.9 kB / 1.318 GB, free: 7.168 MB / 1.014 GB
Notification: Performance of prepare preOptimizeDAE: time 4.684e-05/0.3707, allocations: 16.02 kB / 1.318 GB, free: 7.152 MB / 1.014 GB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.468e-05/0.3708, allocations: 4.938 kB / 1.319 GB, free: 7.148 MB / 1.014 GB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002093/0.371, allocations: 122.5 kB / 1.319 GB, free: 7.004 MB / 1.014 GB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.717e-06/0.371, allocations: 384 / 1.319 GB, free: 7.004 MB / 1.014 GB
Notification: Performance of preOpt expandDerOperator (simulation): time 2.523e-05/0.371, allocations: 8.375 kB / 1.319 GB, free: 6.996 MB / 1.014 GB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001254/0.3712, allocations: 50.19 kB / 1.319 GB, free: 6.941 MB / 1.014 GB
Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.3712, allocations: 192 / 1.319 GB, free: 6.941 MB / 1.014 GB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.3712, allocations: 11.86 kB / 1.319 GB, free: 6.93 MB / 1.014 GB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.871e-06/0.3712, allocations: 3.984 kB / 1.319 GB, free: 6.926 MB / 1.014 GB
Notification: Performance of preOpt removeEqualRHS (simulation): time 3.694e-05/0.3712, allocations: 12 kB / 1.319 GB, free: 6.914 MB / 1.014 GB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004043/0.3716, allocations: 271.9 kB / 1.319 GB, free: 6.605 MB / 1.014 GB
Notification: Performance of preOpt comSubExp (simulation): time 5.618e-05/0.3717, allocations: 22.52 kB / 1.319 GB, free: 6.574 MB / 1.014 GB
Notification: Performance of preOpt resolveLoops (simulation): time 2.145e-05/0.3717, allocations: 8.922 kB / 1.319 GB, free: 6.562 MB / 1.014 GB
Notification: Performance of preOpt evalFunc (simulation): time 8.877e-06/0.3717, allocations: 0 / 1.319 GB, free: 6.562 MB / 1.014 GB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001542/0.3719, allocations: 59.39 kB / 1.319 GB, free: 6.492 MB / 1.014 GB
Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.3719, allocations: 4 kB / 1.319 GB, free: 6.488 MB / 1.014 GB
Notification: Performance of matching and sorting (n=3): time 0.0002018/0.3721, allocations: 65.58 kB / 1.319 GB, free: 6.418 MB / 1.014 GB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.445e-05/0.3721, allocations: 55.39 kB / 1.319 GB, free: 6.352 MB / 1.014 GB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001091/0.3722, allocations: 105.8 kB / 1.319 GB, free: 6.238 MB / 1.014 GB
Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.3723, allocations: 29.7 kB / 1.319 GB, free: 6.203 MB / 1.014 GB
Notification: Performance of collectInitialEqns (initialization): time 6.925e-05/0.3723, allocations: 92.09 kB / 1.319 GB, free: 6.109 MB / 1.014 GB
Notification: Performance of collectInitialBindings (initialization): time 1.045e-05/0.3723, allocations: 3.984 kB / 1.319 GB, free: 6.105 MB / 1.014 GB
Notification: Performance of simplifyInitialFunctions (initialization): time 6.469e-05/0.3724, allocations: 29.7 kB / 1.319 GB, free: 6.07 MB / 1.014 GB
Notification: Performance of setup shared object (initialization): time 0.000166/0.3726, allocations: 322.8 kB / 1.32 GB, free: 5.746 MB / 1.014 GB
Notification: Performance of preBalanceInitialSystem (initialization): time 7.88e-05/0.3727, allocations: 31.97 kB / 1.32 GB, free: 5.715 MB / 1.014 GB
Notification: Performance of partitionIndependentBlocks (initialization): time 8.715e-05/0.3727, allocations: 46.56 kB / 1.32 GB, free: 5.66 MB / 1.014 GB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0001561/0.3729, allocations: 80.2 kB / 1.32 GB, free: 5.566 MB / 1.014 GB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3729, allocations: 3.938 kB / 1.32 GB, free: 5.562 MB / 1.014 GB
Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002697/0.3732, allocations: 151.2 kB / 1.32 GB, free: 5.402 MB / 1.014 GB
Notification: Performance of prepare postOptimizeDAE: time 4.357e-05/0.3732, allocations: 39.89 kB / 1.32 GB, free: 5.359 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.3732, allocations: 4 kB / 1.32 GB, free: 5.355 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.3732, allocations: 3.984 kB / 1.32 GB, free: 5.352 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.737e-05/0.3733, allocations: 0 / 1.32 GB, free: 5.352 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.402e-06/0.3733, allocations: 0 / 1.32 GB, free: 5.352 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002228/0.3735, allocations: 28.22 kB / 1.32 GB, free: 5.324 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.076e-05/0.3735, allocations: 8 kB / 1.32 GB, free: 5.316 MB / 1.014 GB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 3
 * Number of states: 0 ()
 * Number of discrete variables: 4 (booPul.y,$PRE.booPul.y,$whenCondition1,$whenCondition2)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (4):
 * Single equations (assignments): 3
 * 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.0001183/0.3736, allocations: 126.7 kB / 1.32 GB, free: 5.184 MB / 1.014 GB
Notification: Performance of postOpt lateInlineFunction (simulation): time 1.192e-05/0.3736, allocations: 3.953 kB / 1.32 GB, free: 5.18 MB / 1.014 GB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.017e-05/0.3737, allocations: 12 kB / 1.32 GB, free: 5.156 MB / 1.014 GB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.3737, allocations: 3.938 kB / 1.32 GB, free: 5.152 MB / 1.014 GB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.159e-06/0.3737, allocations: 0 / 1.32 GB, free: 5.152 MB / 1.014 GB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.3737, allocations: 0 / 1.32 GB, free: 5.152 MB / 1.014 GB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001462/0.3738, allocations: 136.7 kB / 1.32 GB, free: 4.977 MB / 1.014 GB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.3738, allocations: 0 / 1.32 GB, free: 4.977 MB / 1.014 GB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.374e-06/0.3738, allocations: 4 kB / 1.32 GB, free: 4.973 MB / 1.014 GB
Notification: Performance of postOpt tearingSystem (simulation): time 5.461e-06/0.3738, allocations: 8 kB / 1.32 GB, free: 4.965 MB / 1.014 GB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-06/0.3738, allocations: 0 / 1.32 GB, free: 4.965 MB / 1.014 GB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.3738, allocations: 0 / 1.32 GB, free: 4.965 MB / 1.014 GB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.3738, allocations: 0 / 1.32 GB, free: 4.965 MB / 1.014 GB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001222/0.374, allocations: 81.23 kB / 1.32 GB, free: 4.867 MB / 1.014 GB
Notification: Performance of postOpt removeConstants (simulation): time 1.077e-05/0.374, allocations: 8.031 kB / 1.32 GB, free: 4.859 MB / 1.014 GB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.736e-05/0.374, allocations: 3.984 kB / 1.32 GB, free: 4.855 MB / 1.014 GB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.317e-05/0.374, allocations: 0 / 1.32 GB, free: 4.855 MB / 1.014 GB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.008e-05/0.374, allocations: 4 kB / 1.32 GB, free: 4.852 MB / 1.014 GB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-06/0.374, allocations: 4 kB / 1.32 GB, free: 4.848 MB / 1.014 GB
Notification: Performance of sorting global known variables: time 5.816e-05/0.3741, allocations: 87.27 kB / 1.321 GB, free: 4.762 MB / 1.014 GB
Notification: Performance of sort global known variables: time 8.1e-08/0.3741, allocations: 3.938 kB / 1.321 GB, free: 4.758 MB / 1.014 GB
Notification: Performance of remove unused functions: time 0.0002124/0.3743, allocations: 19.95 kB / 1.321 GB, free: 4.738 MB / 1.014 GB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 1
 * Number of states: 0 ()
 * Number of discrete variables: 3 ($whenCondition1,$whenCondition2,booPul.y)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (3):
 * Single equations (assignments): 2
 * 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.0001839/0.3745, allocations: 95.78 kB / 1.321 GB, free: 4.637 MB / 1.014 GB
Notification: Performance of simCode: created initialization part: time 0.0002437/0.3747, allocations: 111.3 kB / 1.321 GB, free: 4.516 MB / 1.014 GB
Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3747, allocations: 192 / 1.321 GB, free: 4.516 MB / 1.014 GB
Notification: Performance of simCode: created simulation system equations: time 3.416e-05/0.3748, allocations: 19.92 kB / 1.321 GB, free: 4.496 MB / 1.014 GB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002082/0.375, allocations: 11.88 kB / 1.321 GB, free: 4.484 MB / 1.014 GB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003275/0.3753, allocations: 130.1 kB / 1.321 GB, free: 4.332 MB / 1.014 GB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003562/0.3757, allocations: 0.6807 MB / 1.322 GB, free: 3.625 MB / 1.014 GB
Notification: Performance of simCode: alias equations: time 1.738e-05/0.3757, allocations: 0 / 1.322 GB, free: 3.625 MB / 1.014 GB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.147e-05/0.3757, allocations: 15.44 kB / 1.322 GB, free: 3.609 MB / 1.014 GB
Notification: Performance of SimCode: time 3.91e-07/0.3757, allocations: 0 / 1.322 GB, free: 3.609 MB / 1.014 GB
Notification: Performance of Templates: time 0.003921/0.3796, allocations: 1.063 MB / 1.323 GB, free: 2.559 MB / 1.014 GB
"
[Timeout remaining time 300]
make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.makefile [Timeout 300]
(rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator  -abortSlowSimulation -alarm=800  -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe 2>&1) [Timeout 800]
diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.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.315433646552265]