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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009198/0.0009196, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.001063/0.001062, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 223.3 MB / 240 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.906/2.906, allocations: 462.6 MB / 0.736 GB, free: 15.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003325/0.0003325, allocations: 14.16 kB / 0.9021 GB, free: 36.63 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3614/0.3618, allocations: 159.6 MB / 1.058 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.002185/0.364, allocations: 1.469 MB / 1.059 GB, free: 3.859 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001433/0.3654, allocations: 0.9439 MB / 1.06 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.831e-05/0.3655, allocations: 0 / 1.06 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0005516/0.3661, allocations: 151.6 kB / 1.061 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002241/0.3663, allocations: 91.75 kB / 1.061 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003846/0.3667, allocations: 143.3 kB / 1.061 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001978/0.3669, allocations: 151.6 kB / 1.061 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.402e-05/0.367, allocations: 17.12 kB / 1.061 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000101/0.3671, allocations: 63.75 kB / 1.061 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000102/0.3673, allocations: 63.69 kB / 1.061 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.708e-05/0.3673, allocations: 4 kB / 1.061 GB, free: 2.242 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001163/0.3674, allocations: 47.97 kB / 1.061 GB, free: 2.195 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 6.327e-05/0.3675, allocations: 31.91 kB / 1.061 GB, free: 2.164 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.368e-05/0.3675, allocations: 53.58 kB / 1.061 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001922/0.3677, allocations: 143.9 kB / 1.061 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.624e-06/0.3677, allocations: 0 / 1.061 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.052e-06/0.3677, allocations: 0 / 1.061 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.3678, allocations: 0 / 1.061 GB, free: 1.965 MB / 0.8106 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.00063/0.3684, allocations: 476.3 kB / 1.062 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.3684, allocations: 12.03 kB / 1.062 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.57e-05/0.3685, allocations: 11.81 kB / 1.062 GB, free: 1.422 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002836/0.3688, allocations: 247.5 kB / 1.062 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.3688, allocations: 7.984 kB / 1.062 GB, free: 1.129 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.766e-05/0.3688, allocations: 11.95 kB / 1.062 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001883/0.369, allocations: 91.31 kB / 1.062 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.369, allocations: 0 / 1.062 GB, free: 1.016 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.3691, allocations: 3.984 kB / 1.062 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.629e-05/0.3691, allocations: 7.984 kB / 1.062 GB, free: 1.004 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.461e-05/0.3692, allocations: 35.92 kB / 1.062 GB, free: 0.9688 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005855/0.3698, allocations: 348.7 kB / 1.062 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002158/0.37, allocations: 78.61 kB / 1.063 GB, free: 0.4922 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.723e-05/0.3701, allocations: 32.84 kB / 1.063 GB, free: 468 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.6e-05/0.3701, allocations: 4 kB / 1.063 GB, free: 464 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001602/0.3703, allocations: 83.36 kB / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.613e-06/0.3703, allocations: 0 / 1.063 GB, free: 368 kB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0003446/0.3707, allocations: 145.4 kB / 1.063 GB, free: 216 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.705e-05/0.3707, allocations: 81.11 kB / 1.063 GB, free: 116 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002792/0.371, allocations: 259 kB / 1.063 GB, free: 15.85 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.148e-05/0.371, allocations: 33.69 kB / 1.063 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.372e-05/0.3711, allocations: 112.1 kB / 1.063 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.36e-05/0.3712, allocations: 23.66 kB / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.17e-06/0.3712, allocations: 0 / 1.063 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001415/0.3713, allocations: 338.8 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.302e-05/0.3714, allocations: 27.98 kB / 1.064 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.262e-05/0.3715, allocations: 63.36 kB / 1.064 GB, free: 15.23 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.51e-05/0.3716, allocations: 40.42 kB / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.3716, allocations: 0 / 1.064 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001906/0.3718, allocations: 113.4 kB / 1.064 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.3718, allocations: 8.062 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.3718, allocations: 4 kB / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.3718, allocations: 0 / 1.064 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.273e-05/0.3719, allocations: 16 kB / 1.064 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.947e-06/0.3719, allocations: 4 kB / 1.064 GB, free: 15.05 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.984e-05/0.372, allocations: 11.89 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.258e-06/0.372, allocations: 4 kB / 1.064 GB, free: 15.03 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 ($whenCondition1,$PRE.booTab.combiTimeTable.nextTimeEvent,booTab.y,booTab.combiTimeTable.nextTimeEvent,$PRE.booTab.combiTimeTable.nextTimeEventScaled,booTab.combiTimeTable.nextTimeEventScaled,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.000136/0.3722, allocations: 145.7 kB / 1.064 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.299e-05/0.3722, allocations: 19.81 kB / 1.064 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.35e-05/0.3722, allocations: 13.41 kB / 1.064 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.199e-05/0.3723, allocations: 7.984 kB / 1.064 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3723, allocations: 0 / 1.064 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.656e-06/0.3723, allocations: 0 / 1.064 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002153/0.3725, allocations: 233.5 kB / 1.064 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.3725, allocations: 0 / 1.064 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.079e-05/0.3725, allocations: 4 kB / 1.064 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.3725, allocations: 0 / 1.064 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.358e-06/0.3726, allocations: 0 / 1.064 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3726, allocations: 0 / 1.064 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.3726, allocations: 4 kB / 1.064 GB, free: 14.55 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002301/0.3728, allocations: 144.8 kB / 1.064 GB, free: 14.39 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 7.269e-05/0.3729, allocations: 100.9 kB / 1.065 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.482e-05/0.3729, allocations: 0 / 1.065 GB, free: 14.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.075e-05/0.373, allocations: 4 kB / 1.065 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.926e-05/0.373, allocations: 11.98 kB / 1.065 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.436e-06/0.373, allocations: 0 / 1.065 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001798/0.3732, allocations: 192.6 kB / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3732, allocations: 0 / 1.065 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.000244/0.3735, allocations: 35.98 kB / 1.065 GB, free: 14.04 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 (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.001162/0.3747, allocations: 429.5 kB / 1.065 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002178/0.3749, allocations: 71.91 kB / 1.065 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3749, allocations: 0 / 1.065 GB, free: 13.7 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.379e-05/0.375, allocations: 43.98 kB / 1.065 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000289/0.3753, allocations: 27.97 kB / 1.065 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000609/0.3759, allocations: 330 kB / 1.066 GB, free: 13.28 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/0.3762, allocations: 0.7281 MB / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.183e-05/0.3763, allocations: 21.72 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.978e-05/0.3764, allocations: 31.38 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of SimCode: time 2.2e-07/0.3764, allocations: 0 / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of Templates: time 0.005469/0.3818, allocations: 2.118 MB / 1.068 GB, free: 10.38 MB / 0.8262 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