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/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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007304/0.007303, allocations: 100.6 kB / 15.73 MB, free: 6.035 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.001677/0.001677, allocations: 194.1 kB / 16.67 MB, free: 5.973 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.599/2.599, allocations: 390.2 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 58.97 kB / 0.9508 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.343/0.3443, allocations: 140.4 MB / 1.088 GB, free: 1.477 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.005458/0.3498, allocations: 1.779 MB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002075/0.352, allocations: 1.023 MB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.3521, allocations: 4 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0009279/0.353, allocations: 167.5 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000335/0.3534, allocations: 111.6 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005651/0.354, allocations: 167 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002864/0.3543, allocations: 171.6 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001531/0.3544, allocations: 24.86 kB / 1.091 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001245/0.3545, allocations: 71.69 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001584/0.3547, allocations: 71.73 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.088e-05/0.3547, allocations: 8 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001961/0.355, allocations: 63.91 kB / 1.091 GB, free: 13.81 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.203e-05/0.3551, allocations: 47.83 kB / 1.092 GB, free: 13.76 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.371e-05/0.3552, allocations: 59.61 kB / 1.092 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003436/0.3555, allocations: 191.4 kB / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.854e-06/0.3555, allocations: 0 / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.617e-06/0.3555, allocations: 0 / 1.092 GB, free: 13.52 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.907e-06/0.3555, allocations: 0 / 1.092 GB, free: 13.52 MB / 0.8575 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.001047/0.3566, allocations: 0.4962 MB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.3567, allocations: 8.031 kB / 1.092 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.931e-05/0.3567, allocations: 16.75 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003653/0.3571, allocations: 248.8 kB / 1.093 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.04e-05/0.3571, allocations: 16.36 kB / 1.093 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.664e-05/0.3572, allocations: 4.125 kB / 1.093 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00023/0.3574, allocations: 91.31 kB / 1.093 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.3574, allocations: 3.984 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.768e-05/0.3574, allocations: 4 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.439e-05/0.3575, allocations: 8 kB / 1.093 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001086/0.3576, allocations: 27.98 kB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006198/0.3582, allocations: 360.6 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002187/0.3584, allocations: 66.69 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.602e-05/0.3585, allocations: 36.84 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.549e-05/0.3586, allocations: 0 / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001769/0.3587, allocations: 87.31 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.583e-06/0.3587, allocations: 0 / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0003929/0.3591, allocations: 149.4 kB / 1.093 GB, free: 11.73 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.786e-05/0.3592, allocations: 81.05 kB / 1.093 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002668/0.3595, allocations: 263 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.171e-05/0.3595, allocations: 29.7 kB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.91e-05/0.3596, allocations: 120 kB / 1.094 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.814e-05/0.3596, allocations: 15.86 kB / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.614e-05/0.3597, allocations: 37.64 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.3599, allocations: 330.8 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.658e-05/0.3599, allocations: 27.98 kB / 1.094 GB, free: 10.79 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.633e-05/0.36, allocations: 63.41 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00014/0.3602, allocations: 73.67 kB / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3602, allocations: 0 / 1.094 GB, free: 10.64 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001946/0.3604, allocations: 117.3 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.3604, allocations: 4 kB / 1.094 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.3604, allocations: 0 / 1.094 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.407e-05/0.3604, allocations: 0 / 1.094 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.129e-05/0.3605, allocations: 12 kB / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.3605, allocations: 0 / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.104e-05/0.3606, allocations: 15.92 kB / 1.094 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-06/0.3606, allocations: 4 kB / 1.094 GB, free: 10.48 MB / 0.8575 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.0001424/0.3608, allocations: 147.2 kB / 1.095 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.967e-05/0.3608, allocations: 15.81 kB / 1.095 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.554e-05/0.3609, allocations: 17.39 kB / 1.095 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.125e-05/0.3609, allocations: 4 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.042e-06/0.3609, allocations: 3.938 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.3609, allocations: 7.875 kB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002191/0.3611, allocations: 229.5 kB / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3611, allocations: 0 / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.057e-05/0.3612, allocations: 8 kB / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.3612, allocations: 0 / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.088e-05/0.3612, allocations: 3.984 kB / 1.095 GB, free: 9.996 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.837e-06/0.3612, allocations: 4 kB / 1.095 GB, free: 9.992 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3612, allocations: 0 / 1.095 GB, free: 9.992 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000236/0.3614, allocations: 144.8 kB / 1.095 GB, free: 9.832 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.205e-05/0.3615, allocations: 92.91 kB / 1.095 GB, free: 9.723 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.944e-05/0.3615, allocations: 7.938 kB / 1.095 GB, free: 9.715 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.879e-05/0.3616, allocations: 8 kB / 1.095 GB, free: 9.707 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.228e-05/0.3616, allocations: 7.984 kB / 1.095 GB, free: 9.699 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/0.3617, allocations: 3.938 kB / 1.095 GB, free: 9.695 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001805/0.3618, allocations: 196.6 kB / 1.095 GB, free: 9.504 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3619, allocations: 0 / 1.095 GB, free: 9.504 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002542/0.3621, allocations: 31.98 kB / 1.095 GB, free: 9.473 MB / 0.8575 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.001005/0.3631, allocations: 429.5 kB / 1.096 GB, free: 9.207 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002191/0.3634, allocations: 83.89 kB / 1.096 GB, free: 9.125 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3634, allocations: 0 / 1.096 GB, free: 9.125 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.259e-05/0.3635, allocations: 35.98 kB / 1.096 GB, free: 9.09 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002906/0.3638, allocations: 35.95 kB / 1.096 GB, free: 9.055 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005379/0.3643, allocations: 291.1 kB / 1.096 GB, free: 8.742 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003064/0.3646, allocations: 0.728 MB / 1.097 GB, free: 7.988 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.174e-05/0.3647, allocations: 17.73 kB / 1.097 GB, free: 7.973 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.415e-05/0.3647, allocations: 23.44 kB / 1.097 GB, free: 7.949 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.3647, allocations: 3.938 kB / 1.097 GB, free: 7.945 MB / 0.8575 GB Notification: Performance of Templates: time 0.005678/0.3704, allocations: 2.293 MB / 1.099 GB, free: 5.68 MB / 0.8575 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches