Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Utilities.Math.Examples.BooleanReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.358/2.358, allocations: 390.3 MB / 405.3 MB, free: 13.46 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001056/0.001056, allocations: 176.4 kB / 498.1 MB, free: 5.703 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.647/1.647, allocations: 223.2 MB / 0.7949 GB, free: 17.85 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001053/0.001053, allocations: 93.25 kB / 0.9346 GB, free: 6.184 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004833/0.0004832, allocations: 11.66 kB / 1.084 GB, free: 221.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3848/0.3853, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2037/0.589, allocations: 153.7 MB / 1.373 GB, free: 8.352 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/0.5894, allocations: 79.97 kB / 1.373 GB, free: 8.273 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01516/0.6045, allocations: 5.566 MB / 1.378 GB, free: 2.703 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.793e-06/0.6046, allocations: 8 kB / 1.378 GB, free: 2.695 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.65e-05/0.6046, allocations: 4 kB / 1.378 GB, free: 2.691 MB / 0.8698 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.0006796/0.6053, allocations: 0.4888 MB / 1.379 GB, free: 2.148 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.372e-05/0.6053, allocations: 8.031 kB / 1.379 GB, free: 2.141 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.882e-05/0.6054, allocations: 19.81 kB / 1.379 GB, free: 2.121 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003804/0.6058, allocations: 248.3 kB / 1.379 GB, free: 1.836 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.168e-05/0.6058, allocations: 4 kB / 1.379 GB, free: 1.832 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.759e-05/0.6058, allocations: 11.98 kB / 1.379 GB, free: 1.82 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000197/0.6061, allocations: 87.31 kB / 1.379 GB, free: 1.723 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.6061, allocations: 0 / 1.379 GB, free: 1.723 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.493e-05/0.6061, allocations: 4 kB / 1.379 GB, free: 1.719 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.702e-05/0.6061, allocations: 4 kB / 1.379 GB, free: 1.715 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001036/0.6062, allocations: 35.97 kB / 1.379 GB, free: 1.68 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005615/0.6068, allocations: 364.7 kB / 1.38 GB, free: 1.273 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002006/0.607, allocations: 74.67 kB / 1.38 GB, free: 1.191 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.501e-05/0.607, allocations: 4 kB / 1.38 GB, free: 1.188 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001629/0.6072, allocations: 79.53 kB / 1.38 GB, free: 1.098 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=10): time 1.402e-06/0.6072, allocations: 7.938 kB / 1.38 GB, free: 1.09 MB / 0.8698 GB Notification: Performance of matching and sorting (n=10): time 0.0004352/0.6077, allocations: 230.8 kB / 1.38 GB, free: 0.8398 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.729e-05/0.6077, allocations: 77.11 kB / 1.38 GB, free: 0.7461 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002759/0.608, allocations: 245.8 kB / 1.38 GB, free: 0.5 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.137e-05/0.608, allocations: 41.56 kB / 1.38 GB, free: 464 kB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.499e-05/0.6081, allocations: 116.2 kB / 1.381 GB, free: 344 kB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.762e-05/0.6082, allocations: 23.59 kB / 1.381 GB, free: 320 kB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.312e-06/0.6082, allocations: 4 kB / 1.381 GB, free: 316 kB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.6083, allocations: 334.8 kB / 1.381 GB, free: 15.97 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.327e-05/0.6084, allocations: 27.98 kB / 1.381 GB, free: 15.95 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.955e-05/0.6085, allocations: 55.42 kB / 1.381 GB, free: 15.88 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.623e-05/0.6086, allocations: 31.98 kB / 1.381 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.6086, allocations: 0 / 1.381 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002007/0.6088, allocations: 121.5 kB / 1.381 GB, free: 15.72 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.6088, allocations: 8 kB / 1.381 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.6088, allocations: 0 / 1.381 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.6088, allocations: 0 / 1.381 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.739e-05/0.6089, allocations: 23.92 kB / 1.381 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.6089, allocations: 3.953 kB / 1.381 GB, free: 15.69 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.018e-05/0.609, allocations: 4 kB / 1.381 GB, free: 15.68 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.609, allocations: 4 kB / 1.381 GB, free: 15.68 MB / 0.8855 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.0001291/0.6091, allocations: 145.8 kB / 1.381 GB, free: 15.53 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.86e-05/0.6092, allocations: 19.8 kB / 1.381 GB, free: 15.51 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002581/0.6094, allocations: 139 kB / 1.381 GB, free: 15.36 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.015e-06/0.6095, allocations: 0 / 1.381 GB, free: 15.36 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.6095, allocations: 0 / 1.381 GB, free: 15.36 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.6095, allocations: 3.953 kB / 1.381 GB, free: 15.36 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002048/0.6097, allocations: 233.5 kB / 1.382 GB, free: 15.08 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.6097, allocations: 0 / 1.382 GB, free: 15.08 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.774e-05/0.6097, allocations: 8 kB / 1.382 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.6097, allocations: 0 / 1.382 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.6098, allocations: 7.984 kB / 1.382 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.6098, allocations: 0 / 1.382 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.6098, allocations: 96 / 1.382 GB, free: 15.07 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000233/0.61, allocations: 160.8 kB / 1.382 GB, free: 14.89 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 7.891e-05/0.6101, allocations: 104.8 kB / 1.382 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.945e-05/0.6101, allocations: 4 kB / 1.382 GB, free: 14.77 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.268e-05/0.6102, allocations: 4 kB / 1.382 GB, free: 14.76 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.596e-05/0.6103, allocations: 15.92 kB / 1.382 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.6103, allocations: 0 / 1.382 GB, free: 14.75 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.000192/0.6105, allocations: 200.4 kB / 1.382 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6105, allocations: 0 / 1.382 GB, free: 14.55 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002341/0.6107, allocations: 35.94 kB / 1.382 GB, free: 14.52 MB / 0.8855 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.001009/0.6117, allocations: 431.3 kB / 1.383 GB, free: 14.24 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002286/0.612, allocations: 87.84 kB / 1.383 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.612, allocations: 0 / 1.383 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 8.171e-05/0.6121, allocations: 35.98 kB / 1.383 GB, free: 14.12 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002356/0.6123, allocations: 39.86 kB / 1.383 GB, free: 14.08 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005434/0.6129, allocations: 330.2 kB / 1.383 GB, free: 13.73 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002947/0.6132, allocations: 0.7282 MB / 1.384 GB, free: 12.98 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 7.939e-05/0.6133, allocations: 29.38 kB / 1.384 GB, free: 12.95 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.44e-05/0.6133, allocations: 19.44 kB / 1.384 GB, free: 12.93 MB / 0.8855 GB Notification: Performance of SimCode: time 2.21e-07/0.6133, allocations: 0 / 1.384 GB, free: 12.93 MB / 0.8855 GB Notification: Performance of Templates: time 0.005233/0.6186, allocations: 2.269 MB / 1.386 GB, free: 10.68 MB / 0.8855 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_BooleanReplicator.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches