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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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=5000,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=5000,variableFilter="time|booRep.u|booRep.y.1.|booRep.y.2.|booRep.y.3.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 106 kB / 16.36 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 191 kB / 17.29 MB, free: 5.516 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.577/2.577, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 59.66 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3567/0.3588, allocations: 153 MB / 1.027 GB, free: 2.043 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.00235/0.3612, allocations: 0.6193 MB / 1.027 GB, free: 1.426 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001691/0.3629, allocations: 1.131 MB / 1.028 GB, free: 288 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.963e-05/0.363, allocations: 3.938 kB / 1.028 GB, free: 284 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001085/0.3632, allocations: 0 / 1.028 GB, free: 284 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 3.2e-05/0.3632, allocations: 7.938 kB / 1.028 GB, free: 276 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005748/0.3638, allocations: 115.7 kB / 1.029 GB, free: 160 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002001/0.364, allocations: 99.81 kB / 1.029 GB, free: 60 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.3641, allocations: 7.984 kB / 1.029 GB, free: 52 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.691e-05/0.3642, allocations: 35.97 kB / 1.029 GB, free: 16 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000138/0.3643, allocations: 27.91 kB / 1.029 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.872e-05/0.3644, allocations: 8 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.548e-05/0.3645, allocations: 27.92 kB / 1.029 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.161e-05/0.3645, allocations: 15.97 kB / 1.029 GB, free: 15.94 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.288e-05/0.3646, allocations: 31.86 kB / 1.029 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002166/0.3648, allocations: 91.78 kB / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3648, allocations: 0 / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.913e-06/0.3649, allocations: 0 / 1.029 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 7.184e-06/0.3649, allocations: 0 / 1.029 GB, free: 15.82 MB / 0.8106 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.0005418/0.3654, allocations: 381.1 kB / 1.029 GB, free: 15.39 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.3655, allocations: 11.97 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.732e-05/0.3655, allocations: 4.938 kB / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002015/0.3657, allocations: 180.4 kB / 1.029 GB, free: 15.16 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.66e-05/0.3658, allocations: 8.375 kB / 1.029 GB, free: 15.15 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.985e-05/0.3658, allocations: 4.375 kB / 1.029 GB, free: 15.14 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001193/0.3659, allocations: 50.19 kB / 1.03 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.3659, allocations: 192 / 1.03 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/0.3659, allocations: 3.938 kB / 1.03 GB, free: 15.09 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.448e-05/0.366, allocations: 4 kB / 1.03 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.553e-05/0.366, allocations: 8 kB / 1.03 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003924/0.3664, allocations: 308.7 kB / 1.03 GB, free: 14.72 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.796e-05/0.3665, allocations: 30.52 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.714e-05/0.3665, allocations: 4.859 kB / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-06/0.3665, allocations: 0 / 1.03 GB, free: 14.68 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001548/0.3667, allocations: 59.45 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.3667, allocations: 0 / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0002015/0.3669, allocations: 61.62 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.751e-05/0.3669, allocations: 63.34 kB / 1.03 GB, free: 14.46 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.938e-05/0.367, allocations: 109.8 kB / 1.03 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.297e-05/0.3671, allocations: 25.7 kB / 1.03 GB, free: 14.32 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 6.553e-05/0.3671, allocations: 96.11 kB / 1.03 GB, free: 14.22 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.245e-05/0.3672, allocations: 3.906 kB / 1.03 GB, free: 14.21 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.187e-05/0.3672, allocations: 29.7 kB / 1.03 GB, free: 14.18 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.3673, allocations: 322.8 kB / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.789e-05/0.3674, allocations: 23.98 kB / 1.031 GB, free: 13.83 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.9e-05/0.3675, allocations: 58.86 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001068/0.3676, allocations: 84.44 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.3676, allocations: 0 / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002454/0.3679, allocations: 143.3 kB / 1.031 GB, free: 13.52 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 4.142e-05/0.3679, allocations: 33.7 kB / 1.031 GB, free: 13.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.3679, allocations: 8.094 kB / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.661e-05/0.368, allocations: 0 / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.79e-05/0.368, allocations: 0 / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.368, allocations: 0 / 1.031 GB, free: 13.47 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002045/0.3682, allocations: 27.88 kB / 1.031 GB, free: 13.44 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.666e-05/0.3682, allocations: 15.98 kB / 1.031 GB, free: 13.43 MB / 0.8106 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.0001003/0.3683, allocations: 113.8 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.06e-05/0.3684, allocations: 0 / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.725e-05/0.3684, allocations: 15.91 kB / 1.031 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.3684, allocations: 7.922 kB / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3684, allocations: 0 / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.3684, allocations: 0 / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001265/0.3686, allocations: 165.5 kB / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3686, allocations: 0 / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.251e-06/0.3686, allocations: 0 / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.3686, allocations: 0 / 1.031 GB, free: 13.07 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/0.3686, allocations: 7.984 kB / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.3686, allocations: 0 / 1.031 GB, free: 13.06 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.3686, allocations: 4 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001042/0.3687, allocations: 77.06 kB / 1.031 GB, free: 12.96 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.707e-05/0.3688, allocations: 85.02 kB / 1.031 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.311e-05/0.3688, allocations: 0 / 1.031 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.53e-05/0.3688, allocations: 0 / 1.031 GB, free: 12.86 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.837e-05/0.3689, allocations: 11.92 kB / 1.031 GB, free: 12.85 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.364e-06/0.3689, allocations: 4 kB / 1.031 GB, free: 12.84 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.119e-05/0.3689, allocations: 79.28 kB / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3689, allocations: 7.938 kB / 1.032 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002183/0.3692, allocations: 20 kB / 1.032 GB, free: 12.74 MB / 0.8106 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.0001636/0.3693, allocations: 111.4 kB / 1.032 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002302/0.3696, allocations: 119.3 kB / 1.032 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3696, allocations: 0 / 1.032 GB, free: 12.49 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 3.11e-05/0.3696, allocations: 11.94 kB / 1.032 GB, free: 12.48 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002258/0.3699, allocations: 18.83 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003579/0.3702, allocations: 126.1 kB / 1.032 GB, free: 12.31 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002715/0.3705, allocations: 0.6768 MB / 1.033 GB, free: 11.61 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.278e-05/0.3705, allocations: 7.984 kB / 1.033 GB, free: 11.6 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.77e-05/0.3706, allocations: 7.438 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of SimCode: time 3.51e-07/0.3706, allocations: 4 kB / 1.033 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of Templates: time 0.003645/0.3742, allocations: 1.044 MB / 1.034 GB, free: 10.55 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.makefile (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=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe 2>&1) 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches