Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.BooleanVectorReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booRep.u.1.|booRep.y.1|1.|booRep.y.2|2.|booRep.y.3|2.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator") translateModel(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booRep.u.1.|booRep.y.1|1.|booRep.y.2|2.|booRep.y.3|2.",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001199/0.001199, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002009/0.002009, allocations: 196.2 kB / 16.14 MB, free: 6.711 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.391/1.391, allocations: 222.9 MB / 239.8 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.868/2.868, allocations: 472.6 MB / 0.7447 GB, free: 4.883 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 65.44 kB / 0.9114 GB, free: 33.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3696/0.3709, allocations: 159.9 MB / 1.068 GB, free: 10.83 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator): time 0.002176/0.3731, allocations: 0.6827 MB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001614/0.3748, allocations: 1.127 MB / 1.069 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.852e-05/0.3748, allocations: 0 / 1.069 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001041/0.3749, allocations: 7.875 kB / 1.069 GB, free: 9 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001057/0.3751, allocations: 7.984 kB / 1.069 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003673/0.3754, allocations: 114.6 kB / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001769/0.3756, allocations: 167.7 kB / 1.07 GB, free: 8.719 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.3757, allocations: 12 kB / 1.07 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.278e-05/0.3758, allocations: 63.89 kB / 1.07 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.376, allocations: 51.86 kB / 1.07 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.386e-05/0.376, allocations: 8 kB / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.087e-05/0.3761, allocations: 23.98 kB / 1.07 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.436e-05/0.3761, allocations: 27.91 kB / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 9.154e-05/0.3762, allocations: 59.77 kB / 1.07 GB, free: 8.477 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002285/0.3765, allocations: 187.8 kB / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.3765, allocations: 0 / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.323e-06/0.3765, allocations: 3.938 kB / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.568e-06/0.3765, allocations: 0 / 1.07 GB, free: 8.289 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005893/0.3771, allocations: 458.7 kB / 1.07 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.3771, allocations: 12.03 kB / 1.07 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.052e-05/0.3772, allocations: 12.84 kB / 1.07 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000245/0.3775, allocations: 212.3 kB / 1.071 GB, free: 7.508 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.3775, allocations: 8.375 kB / 1.071 GB, free: 7.5 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.595e-05/0.3775, allocations: 12.38 kB / 1.071 GB, free: 7.488 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000173/0.3777, allocations: 99.86 kB / 1.071 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.3777, allocations: 192 / 1.071 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.3777, allocations: 7.938 kB / 1.071 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.231e-06/0.3778, allocations: 4 kB / 1.071 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.919e-05/0.3778, allocations: 39.95 kB / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005566/0.3784, allocations: 496.7 kB / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 8.836e-05/0.3785, allocations: 65.14 kB / 1.071 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.605e-05/0.3785, allocations: 33.7 kB / 1.071 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 8.887e-06/0.3786, allocations: 0 / 1.071 GB, free: 6.668 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001792/0.3787, allocations: 113 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=6): time 2.815e-06/0.3787, allocations: 0 / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0002871/0.379, allocations: 137.5 kB / 1.072 GB, free: 6.398 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.088e-05/0.3791, allocations: 85.03 kB / 1.072 GB, free: 6.297 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.3792, allocations: 133.8 kB / 1.072 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.385e-05/0.3793, allocations: 29.7 kB / 1.072 GB, free: 6.121 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.263e-05/0.3794, allocations: 104 kB / 1.072 GB, free: 6.016 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.059e-05/0.3794, allocations: 19.75 kB / 1.072 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.3795, allocations: 53.69 kB / 1.072 GB, free: 5.938 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001048/0.3796, allocations: 326.8 kB / 1.072 GB, free: 5.609 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002052/0.3798, allocations: 119.9 kB / 1.073 GB, free: 5.492 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002206/0.38, allocations: 157 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002514/0.3803, allocations: 224.4 kB / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3803, allocations: 0 / 1.073 GB, free: 5.07 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0005422/0.3809, allocations: 380.6 kB / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 5.022e-05/0.3809, allocations: 65.11 kB / 1.073 GB, free: 4.605 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.3809, allocations: 4 kB / 1.073 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.3809, allocations: 4.188 kB / 1.073 GB, free: 4.598 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.308e-05/0.381, allocations: 7.938 kB / 1.073 GB, free: 4.59 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/0.381, allocations: 3.984 kB / 1.073 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003833/0.3814, allocations: 67.86 kB / 1.073 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.515e-05/0.3814, allocations: 15.98 kB / 1.073 GB, free: 4.504 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 (booPul[1].y,$PRE.booPul[1].y,$whenCondition3,$whenCondition4,booPul[2].y,$PRE.booPul[2].y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 2 * 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.0001108/0.3815, allocations: 129.8 kB / 1.074 GB, free: 4.367 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.75e-05/0.3816, allocations: 15.89 kB / 1.074 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.827e-05/0.3816, allocations: 11.91 kB / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.3816, allocations: 0 / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.3816, allocations: 0 / 1.074 GB, free: 4.332 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.3816, allocations: 3.938 kB / 1.074 GB, free: 4.328 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001404/0.3818, allocations: 189.6 kB / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.3818, allocations: 0 / 1.074 GB, free: 4.094 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.294e-06/0.3818, allocations: 3.938 kB / 1.074 GB, free: 4.09 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.3818, allocations: 4 kB / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.795e-06/0.3818, allocations: 0 / 1.074 GB, free: 4.086 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3818, allocations: 7.984 kB / 1.074 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.3818, allocations: 0 / 1.074 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001561/0.382, allocations: 138.1 kB / 1.074 GB, free: 3.922 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.475e-05/0.382, allocations: 81.11 kB / 1.074 GB, free: 3.824 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.694e-05/0.382, allocations: 3.984 kB / 1.074 GB, free: 3.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.126e-05/0.3821, allocations: 4 kB / 1.074 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.565e-05/0.3821, allocations: 11.86 kB / 1.074 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-06/0.3821, allocations: 15.92 kB / 1.074 GB, free: 3.789 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.671e-05/0.3822, allocations: 99.81 kB / 1.074 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3822, allocations: 0 / 1.074 GB, free: 3.691 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002376/0.3824, allocations: 39.84 kB / 1.074 GB, free: 3.652 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition4,booPul[1].y,$whenCondition1,$whenCondition2,booPul[2].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.000127/0.3826, allocations: 107.2 kB / 1.074 GB, free: 3.539 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004132/0.383, allocations: 322.6 kB / 1.075 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.383, allocations: 4.375 kB / 1.075 GB, free: 3.195 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.757e-05/0.3831, allocations: 35.92 kB / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000224/0.3833, allocations: 19.06 kB / 1.075 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003677/0.3837, allocations: 225.1 kB / 1.075 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002273/0.3839, allocations: 0.7043 MB / 1.075 GB, free: 2.164 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.798e-05/0.3839, allocations: 7.781 kB / 1.075 GB, free: 2.156 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.49e-05/0.384, allocations: 15.38 kB / 1.076 GB, free: 2.141 MB / 0.8262 GB Notification: Performance of SimCode: time 2.71e-07/0.384, allocations: 0 / 1.076 GB, free: 2.141 MB / 0.8262 GB Notification: Performance of Templates: time 0.004715/0.3887, allocations: 2.171 MB / 1.078 GB, free: 15.99 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Routing_Validation_BooleanVectorReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Routing.Validation.BooleanVectorReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches