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.001364/0.001364, allocations: 109.9 kB / 16.42 MB, free: 6.504 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.001415/0.001415, allocations: 187.9 kB / 17.35 MB, free: 5.762 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.385/1.385, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.689/2.689, allocations: 461.7 MB / 0.7352 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 68.09 kB / 1.055 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9555/0.957, allocations: 157.4 MB / 1.208 GB, free: 13.66 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.002722/0.9598, allocations: 0.6115 MB / 1.209 GB, free: 13.06 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002264/0.9621, allocations: 1.116 MB / 1.21 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.9622, allocations: 3.938 kB / 1.21 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001545/0.9625, allocations: 0 / 1.21 GB, free: 11.93 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 4.33e-05/0.9625, allocations: 15.92 kB / 1.21 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.000802/0.9633, allocations: 123.1 kB / 1.21 GB, free: 11.79 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0002588/0.9636, allocations: 91.88 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.9637, allocations: 8 kB / 1.21 GB, free: 11.7 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001087/0.9639, allocations: 43.89 kB / 1.21 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001876/0.964, allocations: 27.91 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 3.786e-05/0.9641, allocations: 8 kB / 1.21 GB, free: 11.62 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001103/0.9642, allocations: 27.92 kB / 1.21 GB, free: 11.59 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 9.326e-05/0.9643, allocations: 11.97 kB / 1.21 GB, free: 11.58 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 9.384e-05/0.9644, allocations: 27.92 kB / 1.21 GB, free: 11.55 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0002576/0.9647, allocations: 87.78 kB / 1.21 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.9647, allocations: 4 kB / 1.21 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.897e-06/0.9647, allocations: 4 kB / 1.21 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 8.145e-06/0.9647, allocations: 0 / 1.21 GB, free: 11.46 MB / 0.9356 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.0007732/0.9655, allocations: 384.6 kB / 1.211 GB, free: 11.03 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 6.437e-05/0.9656, allocations: 8.031 kB / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.401e-05/0.9657, allocations: 4.938 kB / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002785/0.9659, allocations: 186.4 kB / 1.211 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.317e-05/0.966, allocations: 384 / 1.211 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.965e-05/0.966, allocations: 8.375 kB / 1.211 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001423/0.9661, allocations: 54.19 kB / 1.211 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.9662, allocations: 8.172 kB / 1.211 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.9662, allocations: 3.938 kB / 1.211 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.9662, allocations: 0 / 1.211 GB, free: 10.72 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.998e-05/0.9662, allocations: 12 kB / 1.211 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004399/0.9667, allocations: 300.8 kB / 1.211 GB, free: 10.36 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 5.114e-05/0.9667, allocations: 22.52 kB / 1.211 GB, free: 10.33 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.005e-05/0.9668, allocations: 8.922 kB / 1.211 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 9.367e-06/0.9668, allocations: 4 kB / 1.211 GB, free: 10.32 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001388/0.9669, allocations: 59.39 kB / 1.211 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=3): time 1.553e-06/0.9669, allocations: 3.938 kB / 1.211 GB, free: 10.24 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3): time 0.0002249/0.9672, allocations: 65.53 kB / 1.211 GB, free: 10.17 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/0.9672, allocations: 51.41 kB / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.184e-05/0.9673, allocations: 105.8 kB / 1.212 GB, free: 9.996 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.926e-05/0.9674, allocations: 29.7 kB / 1.212 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.86e-05/0.9674, allocations: 100 kB / 1.212 GB, free: 9.859 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.163e-05/0.9674, allocations: 7.922 kB / 1.212 GB, free: 9.852 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.952e-05/0.9675, allocations: 29.7 kB / 1.212 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001228/0.9676, allocations: 318.8 kB / 1.212 GB, free: 9.496 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.246e-05/0.9677, allocations: 27.98 kB / 1.212 GB, free: 9.469 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.268e-05/0.9678, allocations: 50.55 kB / 1.212 GB, free: 9.41 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001213/0.9679, allocations: 80.22 kB / 1.212 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.9679, allocations: 0 / 1.212 GB, free: 9.316 MB / 0.9356 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002627/0.9682, allocations: 151.2 kB / 1.212 GB, free: 9.156 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.83e-05/0.9683, allocations: 35.73 kB / 1.212 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.9683, allocations: 0 / 1.212 GB, free: 9.117 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/0.9683, allocations: 7.938 kB / 1.212 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.067e-05/0.9683, allocations: 0 / 1.212 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.9683, allocations: 0 / 1.212 GB, free: 9.109 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002046/0.9686, allocations: 28.06 kB / 1.212 GB, free: 9.082 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.669e-05/0.9686, allocations: 11.98 kB / 1.212 GB, free: 9.07 MB / 0.9356 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.000106/0.9687, allocations: 119.5 kB / 1.213 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.195e-05/0.9687, allocations: 0 / 1.213 GB, free: 8.945 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.305e-05/0.9688, allocations: 7.906 kB / 1.213 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.9688, allocations: 3.984 kB / 1.213 GB, free: 8.922 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.9688, allocations: 4 kB / 1.213 GB, free: 8.918 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.04e-05/0.9688, allocations: 84.95 kB / 1.213 GB, free: 8.816 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.9688, allocations: 4.312 kB / 1.213 GB, free: 8.812 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.512e-05/0.9689, allocations: 3.938 kB / 1.213 GB, free: 8.809 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.803e-05/0.9689, allocations: 8 kB / 1.213 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001175/0.969, allocations: 133.2 kB / 1.213 GB, free: 8.664 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001782/0.9692, allocations: 222.8 kB / 1.213 GB, free: 8.43 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.018e-05/0.9693, allocations: 7.938 kB / 1.213 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.121e-05/0.9693, allocations: 91.27 kB / 1.213 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of Backend: time 8.32e-07/0.9693, allocations: 0 / 1.213 GB, free: 8.332 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0005346/0.9698, allocations: 189.8 kB / 1.213 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0006502/0.9705, allocations: 0.5771 MB / 1.214 GB, free: 7.504 MB / 0.9356 GB Notification: Performance of Templates: time 0.003866/0.9744, allocations: 1.079 MB / 1.215 GB, free: 6.441 MB / 0.9356 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 -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