Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.352/1.352, allocations: 251.9 MB / 266.9 MB, free: 11.03 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001144/0.001144, allocations: 184 kB / 326.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.77/1.77, allocations: 205.4 MB / 0.5775 GB, free: 20.25 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008341/0.0008341, allocations: 94.36 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003092/0.0003092, allocations: 12.38 kB / 0.7962 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1976/0.1979, allocations: 106.3 MB / 0.9001 GB, free: 63.96 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1578/0.3558, allocations: 135.7 MB / 1.033 GB, free: 8.09 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.3561, allocations: 83.94 kB / 1.033 GB, free: 8.008 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.01447/0.3705, allocations: 5.431 MB / 1.038 GB, free: 2.57 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.983e-06/0.3706, allocations: 0 / 1.038 GB, free: 2.57 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.618e-05/0.3706, allocations: 4 kB / 1.038 GB, free: 2.566 MB / 0.6823 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.000656/0.3713, allocations: 0.4885 MB / 1.038 GB, free: 2.023 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.3713, allocations: 8.031 kB / 1.038 GB, free: 2.016 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.988e-05/0.3714, allocations: 19.81 kB / 1.038 GB, free: 1.996 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003922/0.3718, allocations: 255.6 kB / 1.039 GB, free: 1.703 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.968e-05/0.3718, allocations: 8 kB / 1.039 GB, free: 1.695 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.783e-05/0.3718, allocations: 7.984 kB / 1.039 GB, free: 1.688 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001956/0.372, allocations: 83.33 kB / 1.039 GB, free: 1.594 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.3721, allocations: 7.984 kB / 1.039 GB, free: 1.586 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/0.3721, allocations: 4 kB / 1.039 GB, free: 1.582 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.839e-05/0.3721, allocations: 4 kB / 1.039 GB, free: 1.578 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.228e-05/0.3722, allocations: 31.98 kB / 1.039 GB, free: 1.547 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000517/0.3727, allocations: 360.7 kB / 1.039 GB, free: 1.145 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001778/0.3729, allocations: 86.59 kB / 1.039 GB, free: 1.051 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.407e-05/0.3729, allocations: 4 kB / 1.039 GB, free: 1.047 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001427/0.3731, allocations: 75.45 kB / 1.039 GB, free: 0.9609 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=10): time 4.418e-06/0.3731, allocations: 96 / 1.039 GB, free: 0.9609 MB / 0.6823 GB Notification: Performance of matching and sorting (n=10): time 0.0003575/0.3735, allocations: 230.8 kB / 1.04 GB, free: 0.7109 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.42e-05/0.3735, allocations: 81.11 kB / 1.04 GB, free: 0.6133 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002649/0.3738, allocations: 246.1 kB / 1.04 GB, free: 376 kB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.135e-05/0.3738, allocations: 33.64 kB / 1.04 GB, free: 336 kB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.18e-05/0.3739, allocations: 120.1 kB / 1.04 GB, free: 212 kB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.254e-05/0.374, allocations: 19.7 kB / 1.04 GB, free: 192 kB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.731e-06/0.374, allocations: 4 kB / 1.04 GB, free: 188 kB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3741, allocations: 326.8 kB / 1.04 GB, free: 15.86 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.533e-05/0.3742, allocations: 27.98 kB / 1.04 GB, free: 15.83 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.842e-05/0.3743, allocations: 63.41 kB / 1.04 GB, free: 15.75 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.052e-05/0.3744, allocations: 28.11 kB / 1.041 GB, free: 15.73 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3744, allocations: 7.922 kB / 1.041 GB, free: 15.72 MB / 0.698 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002002/0.3746, allocations: 121.5 kB / 1.041 GB, free: 15.59 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.3746, allocations: 4 kB / 1.041 GB, free: 15.59 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.3747, allocations: 80 / 1.041 GB, free: 15.59 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.3747, allocations: 0 / 1.041 GB, free: 15.59 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.918e-05/0.3748, allocations: 20 kB / 1.041 GB, free: 15.57 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.3748, allocations: 3.984 kB / 1.041 GB, free: 15.57 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.671e-05/0.3748, allocations: 19.81 kB / 1.041 GB, free: 15.55 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.292e-05/0.3749, allocations: 7.953 kB / 1.041 GB, free: 15.54 MB / 0.698 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 ($whenCondition1,$PRE.booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEvent,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEventScaled,booRep.u,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001379/0.375, allocations: 141.8 kB / 1.041 GB, free: 15.39 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.848e-05/0.375, allocations: 15.81 kB / 1.041 GB, free: 15.38 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002497/0.3753, allocations: 123.1 kB / 1.041 GB, free: 15.25 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.3753, allocations: 15.92 kB / 1.041 GB, free: 15.23 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.3753, allocations: 0 / 1.041 GB, free: 15.23 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.3753, allocations: 0 / 1.041 GB, free: 15.23 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002392/0.3756, allocations: 229.5 kB / 1.041 GB, free: 14.96 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.3756, allocations: 0 / 1.041 GB, free: 14.96 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.838e-05/0.3756, allocations: 4 kB / 1.041 GB, free: 14.95 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.398e-06/0.3757, allocations: 4 kB / 1.041 GB, free: 14.95 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.113e-05/0.3757, allocations: 0 / 1.041 GB, free: 14.95 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.746e-06/0.3757, allocations: 7.922 kB / 1.041 GB, free: 14.94 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3757, allocations: 96 / 1.041 GB, free: 14.94 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002357/0.3759, allocations: 164.8 kB / 1.041 GB, free: 14.76 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 8.572e-05/0.376, allocations: 104.9 kB / 1.041 GB, free: 14.64 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.783e-05/0.3761, allocations: 4 kB / 1.041 GB, free: 14.64 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.706e-05/0.3761, allocations: 7.984 kB / 1.041 GB, free: 14.63 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.091e-05/0.3762, allocations: 4 kB / 1.041 GB, free: 14.62 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.915e-06/0.3762, allocations: 3.938 kB / 1.041 GB, free: 14.62 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001916/0.3764, allocations: 200.1 kB / 1.042 GB, free: 14.43 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3764, allocations: 4 kB / 1.042 GB, free: 14.42 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002381/0.3766, allocations: 43.92 kB / 1.042 GB, free: 14.38 MB / 0.698 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.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled,booRep.u,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4]) * Number of discrete states: 2 (booTab.combiTimeTable.nextTimeEvent,booTab.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008843/0.3775, allocations: 425.2 kB / 1.042 GB, free: 14.12 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0002105/0.3777, allocations: 87.83 kB / 1.042 GB, free: 14.03 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.3778, allocations: 0 / 1.042 GB, free: 14.03 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 8.33e-05/0.3778, allocations: 35.98 kB / 1.042 GB, free: 14 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002456/0.3781, allocations: 43.94 kB / 1.042 GB, free: 13.95 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005331/0.3786, allocations: 334.4 kB / 1.043 GB, free: 13.59 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003084/0.379, allocations: 0.7282 MB / 1.043 GB, free: 12.84 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 7.524e-05/0.379, allocations: 25.38 kB / 1.043 GB, free: 12.81 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.136e-05/0.3791, allocations: 15.44 kB / 1.043 GB, free: 12.8 MB / 0.698 GB Notification: Performance of SimCode: time 3.11e-07/0.3791, allocations: 4 kB / 1.043 GB, free: 12.79 MB / 0.698 GB Notification: Performance of Templates: time 0.004814/0.3839, allocations: 2.271 MB / 1.046 GB, free: 10.54 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_BooleanReplicator.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.BooleanReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches