Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.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_9_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_9_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.001584/0.001584, allocations: 109 kB / 16.41 MB, free: 6.492 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.00176/0.001761, allocations: 189.5 kB / 17.34 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.25/2.25, allocations: 390.3 MB / 0.6655 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001403, allocations: 67.89 kB / 0.9515 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.072/1.074, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator): time 0.001796/1.076, allocations: 0.623 MB / 1.089 GB, free: 5.129 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001339/1.077, allocations: 1.116 MB / 1.09 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.536e-05/1.077, allocations: 0.6562 kB / 1.09 GB, free: 4.309 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 9.832e-05/1.077, allocations: 4.844 kB / 1.09 GB, free: 4.305 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.159e-05/1.077, allocations: 6.031 kB / 1.09 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004764/1.078, allocations: 121.4 kB / 1.09 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001816/1.078, allocations: 93.25 kB / 1.091 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 9.73e-05/1.078, allocations: 9.312 kB / 1.091 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.025e-05/1.078, allocations: 30.19 kB / 1.091 GB, free: 4.191 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001194/1.078, allocations: 36.58 kB / 1.091 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.684e-05/1.078, allocations: 8.031 kB / 1.091 GB, free: 4.176 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.047e-05/1.078, allocations: 25.69 kB / 1.091 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 5.875e-05/1.078, allocations: 13.64 kB / 1.091 GB, free: 4.16 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.598e-05/1.078, allocations: 35.47 kB / 1.091 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001871/1.079, allocations: 86.31 kB / 1.091 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/1.079, allocations: 0 / 1.091 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.222e-06/1.079, allocations: 1.219 kB / 1.091 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.971e-06/1.079, allocations: 0 / 1.091 GB, free: 4.113 MB / 0.8575 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.0003953/1.079, allocations: 378.9 kB / 1.091 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.738e-05/1.079, allocations: 9.562 kB / 1.091 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.845e-05/1.079, allocations: 5.688 kB / 1.091 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001448/1.079, allocations: 186.6 kB / 1.091 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/1.079, allocations: 8.391 kB / 1.091 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.278e-05/1.079, allocations: 6.344 kB / 1.091 GB, free: 3.508 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001003/1.079, allocations: 42.86 kB / 1.091 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.812e-06/1.079, allocations: 192 / 1.091 GB, free: 3.473 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/1.079, allocations: 5.859 kB / 1.091 GB, free: 3.469 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/1.079, allocations: 8.906 kB / 1.091 GB, free: 3.461 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.174e-05/1.079, allocations: 11.8 kB / 1.091 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003229/1.08, allocations: 307.6 kB / 1.092 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.004e-05/1.08, allocations: 22.86 kB / 1.092 GB, free: 3.133 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.665e-05/1.08, allocations: 11.47 kB / 1.092 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 5.591e-06/1.08, allocations: 5.203 kB / 1.092 GB, free: 3.117 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001133/1.08, allocations: 61.02 kB / 1.092 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/1.08, allocations: 0 / 1.092 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.000164/1.08, allocations: 63.73 kB / 1.092 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.416e-05/1.08, allocations: 57.14 kB / 1.092 GB, free: 2.953 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.599e-05/1.08, allocations: 113.9 kB / 1.092 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/1.08, allocations: 27.95 kB / 1.092 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.635e-05/1.08, allocations: 88.75 kB / 1.092 GB, free: 2.727 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 9.417e-06/1.08, allocations: 8.875 kB / 1.092 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.008e-05/1.08, allocations: 30.56 kB / 1.092 GB, free: 2.699 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.672e-05/1.08, allocations: 317.6 kB / 1.092 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.218e-05/1.081, allocations: 35.64 kB / 1.092 GB, free: 2.367 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.548e-05/1.081, allocations: 44.33 kB / 1.093 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.915e-05/1.081, allocations: 84.2 kB / 1.093 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.155e-06/1.081, allocations: 0 / 1.093 GB, free: 2.262 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002448/1.081, allocations: 138.8 kB / 1.093 GB, free: 2.176 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.421e-05/1.081, allocations: 43.28 kB / 1.093 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/1.081, allocations: 1.609 kB / 1.093 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/1.081, allocations: 1.469 kB / 1.093 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.593e-05/1.081, allocations: 1.125 kB / 1.093 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/1.081, allocations: 1.578 kB / 1.093 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002208/1.081, allocations: 28.14 kB / 1.093 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.254e-05/1.081, allocations: 6.016 kB / 1.093 GB, free: 2.133 MB / 0.8575 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 7.667e-05/1.081, allocations: 124.5 kB / 1.093 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.065e-05/1.081, allocations: 2.547 kB / 1.093 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.804e-05/1.081, allocations: 5.406 kB / 1.093 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/1.081, allocations: 0.75 kB / 1.093 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/1.081, allocations: 1.5 kB / 1.093 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.785e-06/1.081, allocations: 0 / 1.093 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.956e-05/1.082, allocations: 168.1 kB / 1.093 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/1.082, allocations: 0 / 1.093 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.833e-06/1.082, allocations: 9.219 kB / 1.093 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/1.082, allocations: 4.594 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/1.082, allocations: 1.375 kB / 1.093 GB, free: 1.785 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/1.082, allocations: 4.75 kB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/1.082, allocations: 0.6875 kB / 1.093 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.722e-05/1.082, allocations: 80.5 kB / 1.093 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.481e-05/1.082, allocations: 82.48 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/1.082, allocations: 1.547 kB / 1.093 GB, free: 1.609 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.442e-05/1.082, allocations: 4.5 kB / 1.093 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.539e-05/1.082, allocations: 3.25 kB / 1.093 GB, free: 1.605 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/1.082, allocations: 5.938 kB / 1.093 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.018e-05/1.082, allocations: 85.89 kB / 1.093 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/1.082, allocations: 0 / 1.093 GB, free: 1.523 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002091/1.082, allocations: 15.73 kB / 1.093 GB, free: 1.523 MB / 0.8575 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.0001345/1.082, allocations: 104.9 kB / 1.094 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002109/1.082, allocations: 127.8 kB / 1.094 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/1.082, allocations: 0.625 kB / 1.094 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.322e-05/1.083, allocations: 17.34 kB / 1.094 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002016/1.083, allocations: 11.78 kB / 1.094 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002729/1.083, allocations: 155.6 kB / 1.094 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001251/1.083, allocations: 0.6815 MB / 1.094 GB, free: 492 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.506e-05/1.083, allocations: 9.156 kB / 1.094 GB, free: 484 kB / 0.8575 GB Notification: Performance of SimCode: time 2.1e-07/1.083, allocations: 0 / 1.094 GB, free: 484 kB / 0.8575 GB Notification: Performance of Templates: time 0.003173/1.086, allocations: 0.9267 MB / 1.095 GB, free: 392 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Routing_Validation_BooleanScalarReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanScalarReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches