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/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.275/2.275, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.001978/0.001978, allocations: 189.6 kB / 0.4902 GB, free: 2.25 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.654/1.654, allocations: 223.2 MB / 0.7992 GB, free: 14.77 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.000997/0.000997, allocations: 102.1 kB / 0.9396 GB, free: 1.953 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003831/0.0003831, allocations: 6.969 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3289/0.3293, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2051/0.5345, allocations: 154.5 MB / 1.38 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003201/0.5348, allocations: 87.94 kB / 1.38 GB, free: 15.05 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.01661/0.5515, allocations: 5.564 MB / 1.386 GB, free: 9.484 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.986e-06/0.5515, allocations: 0 / 1.386 GB, free: 9.484 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.847e-05/0.5515, allocations: 3.984 kB / 1.386 GB, free: 9.48 MB / 0.8855 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.0007535/0.5523, allocations: 492.2 kB / 1.386 GB, free: 8.945 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.732e-05/0.5524, allocations: 8.562 kB / 1.386 GB, free: 8.938 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.177e-05/0.5524, allocations: 15.81 kB / 1.386 GB, free: 8.922 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004746/0.5529, allocations: 259.6 kB / 1.386 GB, free: 8.625 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.137e-05/0.553, allocations: 0 / 1.386 GB, free: 8.625 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.773e-05/0.553, allocations: 4 kB / 1.386 GB, free: 8.621 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002395/0.5532, allocations: 95.66 kB / 1.386 GB, free: 8.516 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.5533, allocations: 0 / 1.386 GB, free: 8.516 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.624e-05/0.5533, allocations: 4 kB / 1.386 GB, free: 8.512 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.055e-05/0.5533, allocations: 7.984 kB / 1.386 GB, free: 8.504 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001105/0.5534, allocations: 35.98 kB / 1.386 GB, free: 8.469 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006305/0.5541, allocations: 368.6 kB / 1.387 GB, free: 8.059 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001971/0.5543, allocations: 78.67 kB / 1.387 GB, free: 7.973 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.221e-05/0.5543, allocations: 0 / 1.387 GB, free: 7.973 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001644/0.5545, allocations: 87.41 kB / 1.387 GB, free: 7.875 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.5545, allocations: 0 / 1.387 GB, free: 7.875 MB / 0.8855 GB Notification: Performance of matching and sorting (n=10): time 0.0004142/0.5549, allocations: 234.5 kB / 1.387 GB, free: 7.621 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.919e-05/0.555, allocations: 81.11 kB / 1.387 GB, free: 7.523 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002814/0.5553, allocations: 246.6 kB / 1.388 GB, free: 7.273 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.253e-05/0.5553, allocations: 29.7 kB / 1.388 GB, free: 7.238 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 7.798e-05/0.5554, allocations: 116 kB / 1.388 GB, free: 7.121 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 3.198e-05/0.5554, allocations: 23.78 kB / 1.388 GB, free: 7.098 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.518e-06/0.5554, allocations: 0 / 1.388 GB, free: 7.098 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001151/0.5556, allocations: 330.8 kB / 1.388 GB, free: 6.766 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.865e-05/0.5556, allocations: 27.98 kB / 1.388 GB, free: 6.738 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.454e-05/0.5557, allocations: 67.41 kB / 1.388 GB, free: 6.66 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.308e-05/0.5558, allocations: 28 kB / 1.388 GB, free: 6.633 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.5558, allocations: 0 / 1.388 GB, free: 6.633 MB / 0.8855 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002144/0.556, allocations: 125.4 kB / 1.388 GB, free: 6.504 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.5561, allocations: 11.92 kB / 1.388 GB, free: 6.492 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.5561, allocations: 0 / 1.388 GB, free: 6.492 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.5561, allocations: 8.438 kB / 1.388 GB, free: 6.484 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.884e-05/0.5562, allocations: 8 kB / 1.388 GB, free: 6.477 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.5562, allocations: 3.953 kB / 1.388 GB, free: 6.473 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.054e-05/0.5563, allocations: 7.938 kB / 1.388 GB, free: 6.465 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.417e-05/0.5563, allocations: 15.92 kB / 1.388 GB, free: 6.449 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.0001345/0.5565, allocations: 134.6 kB / 1.388 GB, free: 6.309 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.198e-05/0.5565, allocations: 15.81 kB / 1.388 GB, free: 6.293 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002626/0.5568, allocations: 135 kB / 1.389 GB, free: 6.156 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.216e-05/0.5568, allocations: 3.984 kB / 1.389 GB, free: 6.152 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.5568, allocations: 4 kB / 1.389 GB, free: 6.148 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.5568, allocations: 7.938 kB / 1.389 GB, free: 6.141 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002133/0.557, allocations: 225.6 kB / 1.389 GB, free: 5.871 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.5571, allocations: 4 kB / 1.389 GB, free: 5.867 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.056e-05/0.5571, allocations: 8 kB / 1.389 GB, free: 5.859 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.636e-06/0.5571, allocations: 0 / 1.389 GB, free: 5.859 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.5571, allocations: 0 / 1.389 GB, free: 5.859 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.5571, allocations: 0 / 1.389 GB, free: 5.859 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/0.5571, allocations: 8 kB / 1.389 GB, free: 5.852 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002438/0.5574, allocations: 161 kB / 1.389 GB, free: 5.676 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 8.152e-05/0.5575, allocations: 100.9 kB / 1.389 GB, free: 5.559 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.919e-05/0.5575, allocations: 0 / 1.389 GB, free: 5.559 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.86e-05/0.5576, allocations: 11.98 kB / 1.389 GB, free: 5.547 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.376e-05/0.5576, allocations: 8 kB / 1.389 GB, free: 5.539 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.979e-06/0.5577, allocations: 4 kB / 1.389 GB, free: 5.535 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0002014/0.5579, allocations: 196.6 kB / 1.389 GB, free: 5.344 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5579, allocations: 0 / 1.389 GB, free: 5.344 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000266/0.5581, allocations: 47.83 kB / 1.389 GB, free: 5.297 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.001081/0.5592, allocations: 427.6 kB / 1.39 GB, free: 5.027 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002285/0.5595, allocations: 91.86 kB / 1.39 GB, free: 4.938 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.5595, allocations: 0 / 1.39 GB, free: 4.938 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 8.633e-05/0.5596, allocations: 44.05 kB / 1.39 GB, free: 4.895 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.5598, allocations: 33.81 kB / 1.39 GB, free: 4.863 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006523/0.5605, allocations: 334.1 kB / 1.39 GB, free: 4.512 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003431/0.5609, allocations: 0.732 MB / 1.391 GB, free: 3.754 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0001067/0.561, allocations: 25.08 kB / 1.391 GB, free: 3.727 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.88e-05/0.561, allocations: 23.44 kB / 1.391 GB, free: 3.703 MB / 0.8855 GB Notification: Performance of SimCode: time 3.61e-07/0.561, allocations: 0 / 1.391 GB, free: 3.703 MB / 0.8855 GB Notification: Performance of Templates: time 0.006041/0.5671, allocations: 2.254 MB / 1.393 GB, free: 1.465 MB / 0.8855 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","../files/Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches