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.001435/0.001435, allocations: 113.3 kB / 16.41 MB, free: 6.457 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.00164/0.001641, allocations: 185.5 kB / 17.34 MB, free: 5.723 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.407/1.407, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.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.294/2.294, allocations: 390.3 MB / 0.6655 GB, free: 0.6836 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001483, allocations: 67.91 kB / 0.9515 GB, free: 7.668 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9759/0.9774, allocations: 140.4 MB / 1.089 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003235/0.9807, allocations: 1.778 MB / 1.09 GB, free: 4.301 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001618/0.9823, allocations: 1.029 MB / 1.091 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.919e-05/0.9824, allocations: 1.125 kB / 1.091 GB, free: 3.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006856/0.9831, allocations: 160.7 kB / 1.092 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003008/0.9834, allocations: 114.7 kB / 1.092 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005035/0.984, allocations: 164.1 kB / 1.092 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002596/0.9842, allocations: 173.9 kB / 1.092 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001163/0.9844, allocations: 22.56 kB / 1.092 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.9845, allocations: 71.84 kB / 1.092 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001299/0.9846, allocations: 77.55 kB / 1.092 GB, free: 3.258 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.871e-05/0.9847, allocations: 12.19 kB / 1.092 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001789/0.9849, allocations: 56.36 kB / 1.092 GB, free: 3.242 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.603e-05/0.9849, allocations: 36.27 kB / 1.092 GB, free: 3.23 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.851e-05/0.985, allocations: 66.86 kB / 1.092 GB, free: 3.18 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003311/0.9854, allocations: 194.7 kB / 1.092 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.9854, allocations: 1.312 kB / 1.092 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.084e-06/0.9854, allocations: 0 / 1.092 GB, free: 3.105 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.125e-05/0.9854, allocations: 0 / 1.092 GB, free: 3.105 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.0006709/0.9861, allocations: 0.4923 MB / 1.093 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.077e-05/0.9861, allocations: 12.91 kB / 1.093 GB, free: 2.625 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.952e-05/0.9862, allocations: 16.66 kB / 1.093 GB, free: 2.617 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.9865, allocations: 242.3 kB / 1.093 GB, free: 2.383 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.9865, allocations: 7.234 kB / 1.093 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.57e-05/0.9865, allocations: 6.344 kB / 1.093 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001988/0.9867, allocations: 87.75 kB / 1.093 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.9867, allocations: 0 / 1.093 GB, free: 2.312 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.679e-05/0.9868, allocations: 6 kB / 1.093 GB, free: 2.309 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.223e-05/0.9868, allocations: 7.328 kB / 1.093 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001005/0.9869, allocations: 35.8 kB / 1.093 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004974/0.9874, allocations: 361.1 kB / 1.094 GB, free: 1.973 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001911/0.9876, allocations: 78.06 kB / 1.094 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.701e-05/0.9877, allocations: 37.12 kB / 1.094 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.9877, allocations: 5.562 kB / 1.094 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001641/0.9879, allocations: 75.83 kB / 1.094 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.9879, allocations: 0 / 1.094 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0003559/0.9883, allocations: 145.2 kB / 1.094 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.711e-05/0.9883, allocations: 79 kB / 1.094 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003183/0.9886, allocations: 257.8 kB / 1.094 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.389e-05/0.9887, allocations: 34.55 kB / 1.094 GB, free: 1.496 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.894e-05/0.9887, allocations: 125 kB / 1.094 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.657e-05/0.9888, allocations: 17.31 kB / 1.095 GB, free: 1.371 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.809e-05/0.9888, allocations: 29.67 kB / 1.095 GB, free: 1.348 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 7.238e-05/0.9889, allocations: 333.8 kB / 1.095 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.234e-05/0.989, allocations: 26.06 kB / 1.095 GB, free: 1.016 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.881e-05/0.9891, allocations: 63.39 kB / 1.095 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001305/0.9892, allocations: 68.41 kB / 1.095 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.9892, allocations: 0.8438 kB / 1.095 GB, free: 0.9336 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002073/0.9894, allocations: 119 kB / 1.095 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.9894, allocations: 5.156 kB / 1.095 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.9895, allocations: 0.9062 kB / 1.095 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.648e-05/0.9895, allocations: 1.547 kB / 1.095 GB, free: 0.8672 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.38e-05/0.9896, allocations: 14.61 kB / 1.095 GB, free: 0.8633 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.9896, allocations: 5.312 kB / 1.095 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.23e-05/0.9896, allocations: 17.59 kB / 1.095 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.248e-06/0.9897, allocations: 2.281 kB / 1.095 GB, free: 0.8477 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.000124/0.9898, allocations: 145 kB / 1.095 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.163e-05/0.9898, allocations: 15.34 kB / 1.095 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.023e-05/0.9899, allocations: 19.39 kB / 1.095 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.335e-05/0.9899, allocations: 3.047 kB / 1.095 GB, free: 0.7031 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.9899, allocations: 8.719 kB / 1.095 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.9899, allocations: 4.688 kB / 1.095 GB, free: 0.6914 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002056/0.9901, allocations: 223.2 kB / 1.096 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.9901, allocations: 0 / 1.096 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.341e-05/0.9902, allocations: 8.266 kB / 1.096 GB, free: 484 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.9902, allocations: 1 kB / 1.096 GB, free: 484 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.959e-06/0.9902, allocations: 5.531 kB / 1.096 GB, free: 480 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.9902, allocations: 5.547 kB / 1.096 GB, free: 476 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.9902, allocations: 3.984 kB / 1.096 GB, free: 472 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002303/0.9904, allocations: 144.6 kB / 1.096 GB, free: 372 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.989e-05/0.9905, allocations: 94.8 kB / 1.096 GB, free: 264 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.277e-05/0.9905, allocations: 10.39 kB / 1.096 GB, free: 256 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.083e-05/0.9906, allocations: 4.094 kB / 1.096 GB, free: 256 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.072e-05/0.9906, allocations: 4.266 kB / 1.096 GB, free: 256 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.056e-05/0.9906, allocations: 7.391 kB / 1.096 GB, free: 252 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0002022/0.9909, allocations: 199.7 kB / 1.096 GB, free: 136 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9909, allocations: 0 / 1.096 GB, free: 136 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002686/0.9911, allocations: 32.39 kB / 1.096 GB, free: 128 kB / 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.001031/0.9922, allocations: 431.8 kB / 1.096 GB, free: 15.93 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002544/0.9924, allocations: 74.45 kB / 1.097 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.9925, allocations: 0 / 1.097 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.9926, allocations: 33.94 kB / 1.097 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003192/0.9929, allocations: 40.22 kB / 1.097 GB, free: 15.88 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006072/0.9935, allocations: 327.7 kB / 1.097 GB, free: 15.66 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003471/0.9939, allocations: 0.722 MB / 1.098 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.12e-05/0.9939, allocations: 18.06 kB / 1.098 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of SimCode: time 2e-07/0.9939, allocations: 0 / 1.098 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of Templates: time 0.005877/0.9998, allocations: 2.562 MB / 1.1 GB, free: 14.63 MB / 0.8731 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches