Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.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.Utilities.Math.Examples.BooleanReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booRep.u|booRep.y.1.|booRep.y.2.|booRep.y.3.|booRep.y.4.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator") translateModel(Buildings.Utilities.Math.Examples.BooleanReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booRep.u|booRep.y.1.|booRep.y.2.|booRep.y.3.|booRep.y.4.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001591/0.001591, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001891/0.001891, allocations: 194.5 kB / 16.25 MB, free: 6.629 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.373/1.373, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.775/2.775, allocations: 472.7 MB / 0.7449 GB, free: 4.801 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001281/0.001281, allocations: 66.42 kB / 0.9116 GB, free: 33.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3546/0.3559, allocations: 159.9 MB / 1.068 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003157/0.3591, allocations: 1.845 MB / 1.07 GB, free: 8.84 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001444/0.3605, allocations: 1.006 MB / 1.071 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.416e-05/0.3606, allocations: 3.938 kB / 1.071 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0005737/0.3612, allocations: 163.6 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002655/0.3615, allocations: 107.7 kB / 1.071 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004438/0.3619, allocations: 147.2 kB / 1.071 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002229/0.3622, allocations: 171.6 kB / 1.071 GB, free: 7.25 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.3623, allocations: 17.12 kB / 1.071 GB, free: 7.23 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001056/0.3624, allocations: 75.69 kB / 1.071 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001191/0.3625, allocations: 67.77 kB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 2.252e-05/0.3626, allocations: 11.94 kB / 1.071 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001651/0.3627, allocations: 63.89 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.052e-05/0.3628, allocations: 35.91 kB / 1.071 GB, free: 6.98 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.023e-05/0.3629, allocations: 67.59 kB / 1.071 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002407/0.3632, allocations: 191.7 kB / 1.072 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3632, allocations: 0 / 1.072 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3632, allocations: 3.938 kB / 1.072 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.891e-06/0.3632, allocations: 0 / 1.072 GB, free: 6.723 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006731/0.3639, allocations: 0.4902 MB / 1.072 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.3639, allocations: 12.03 kB / 1.072 GB, free: 6.168 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.905e-05/0.364, allocations: 12.75 kB / 1.072 GB, free: 6.156 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002696/0.3642, allocations: 248.8 kB / 1.072 GB, free: 5.875 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.3643, allocations: 8.375 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.445e-05/0.3643, allocations: 8.125 kB / 1.072 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001814/0.3645, allocations: 87.31 kB / 1.072 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.3645, allocations: 4 kB / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.3645, allocations: 4 kB / 1.072 GB, free: 5.754 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.973e-05/0.3645, allocations: 4 kB / 1.072 GB, free: 5.75 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.2e-05/0.3646, allocations: 31.97 kB / 1.072 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004616/0.3651, allocations: 360.6 kB / 1.073 GB, free: 5.316 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001797/0.3653, allocations: 74.67 kB / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.486e-05/0.3654, allocations: 32.84 kB / 1.073 GB, free: 5.199 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.3654, allocations: 4 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001611/0.3655, allocations: 83.31 kB / 1.073 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.3656, allocations: 0 / 1.073 GB, free: 5.102 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0003285/0.3659, allocations: 149.3 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/0.3659, allocations: 81.11 kB / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002685/0.3662, allocations: 266.7 kB / 1.073 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.3662, allocations: 29.7 kB / 1.074 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.891e-05/0.3663, allocations: 112.1 kB / 1.074 GB, free: 4.43 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.116e-05/0.3664, allocations: 31.62 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.689e-05/0.3664, allocations: 29.7 kB / 1.074 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001129/0.3665, allocations: 330.8 kB / 1.074 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.268e-05/0.3666, allocations: 27.98 kB / 1.074 GB, free: 4.004 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.148e-05/0.3667, allocations: 59.42 kB / 1.074 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.3668, allocations: 77.67 kB / 1.074 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3668, allocations: 0 / 1.074 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001843/0.367, allocations: 113.4 kB / 1.074 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.3671, allocations: 7.984 kB / 1.074 GB, free: 3.727 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.3671, allocations: 64 / 1.074 GB, free: 3.727 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.3671, allocations: 8 kB / 1.074 GB, free: 3.719 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.16e-05/0.3672, allocations: 8 kB / 1.074 GB, free: 3.711 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.3672, allocations: 0 / 1.074 GB, free: 3.711 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.547e-05/0.3672, allocations: 11.94 kB / 1.074 GB, free: 3.699 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.056e-05/0.3672, allocations: 8.375 kB / 1.074 GB, free: 3.691 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 10 ($PRE.booTab.combiTimeTable.nextTimeEvent,$whenCondition1,booRep.y[4],booRep.y[3],booRep.y[2],booRep.y[1],booTab.combiTimeTable.nextTimeEventScaled,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEvent,booTab.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 8 * Array equations: 1 * Algorithm blocks: 0 * 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.000127/0.3674, allocations: 151.2 kB / 1.074 GB, free: 3.535 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.613e-05/0.3674, allocations: 15.81 kB / 1.074 GB, free: 3.52 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.365e-05/0.3675, allocations: 21.41 kB / 1.074 GB, free: 3.5 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.298e-06/0.3675, allocations: 7.922 kB / 1.074 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.3675, allocations: 0 / 1.074 GB, free: 3.492 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3675, allocations: 3.938 kB / 1.074 GB, free: 3.488 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000184/0.3677, allocations: 229.4 kB / 1.075 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.3677, allocations: 0 / 1.075 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.198e-05/0.3677, allocations: 8 kB / 1.075 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.3677, allocations: 0 / 1.075 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.3677, allocations: 0 / 1.075 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.3677, allocations: 0 / 1.075 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3677, allocations: 0 / 1.075 GB, free: 3.207 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002167/0.368, allocations: 152.8 kB / 1.075 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.672e-05/0.368, allocations: 88.92 kB / 1.075 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.741e-05/0.3681, allocations: 4 kB / 1.075 GB, free: 2.93 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.816e-05/0.3681, allocations: 7.984 kB / 1.075 GB, free: 2.922 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.076e-05/0.3682, allocations: 4 kB / 1.075 GB, free: 2.918 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.124e-05/0.3682, allocations: 3.938 kB / 1.075 GB, free: 2.914 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001685/0.3684, allocations: 199.2 kB / 1.075 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3684, allocations: 4 kB / 1.075 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000227/0.3686, allocations: 24 kB / 1.075 GB, free: 2.691 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,booTab.y,booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete states: 2 (booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 4 * Array equations: 1 * 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.0009986/0.3696, allocations: 426.1 kB / 1.076 GB, free: 2.426 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002079/0.3698, allocations: 79.91 kB / 1.076 GB, free: 2.348 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3698, allocations: 0 / 1.076 GB, free: 2.348 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 7.713e-05/0.3699, allocations: 35.92 kB / 1.076 GB, free: 2.312 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002864/0.3702, allocations: 51.95 kB / 1.076 GB, free: 2.266 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004992/0.3707, allocations: 323 kB / 1.076 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002621/0.371, allocations: 0.724 MB / 1.077 GB, free: 1.176 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.745e-05/0.3711, allocations: 21.72 kB / 1.077 GB, free: 1.156 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.865e-05/0.3711, allocations: 23.44 kB / 1.077 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of SimCode: time 2.91e-07/0.3711, allocations: 4 kB / 1.077 GB, free: 1.129 MB / 0.8262 GB Notification: Performance of Templates: time 0.005084/0.3762, allocations: 2.252 MB / 1.079 GB, free: 14.9 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_BooleanReplicator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches