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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001017/0.001017, allocations: 91.53 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 179 kB / 16.92 MB, free: 6.652 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.417/1.417, allocations: 223.3 MB / 241 MB, free: 5.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.378/2.378, allocations: 390.9 MB / 0.667 GB, free: 2.344 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003669/0.0003669, allocations: 8 kB / 0.8166 GB, free: 13.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6808/0.6812, allocations: 142.4 MB / 0.9557 GB, free: 7.668 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.001895/0.6831, allocations: 1.489 MB / 0.9572 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001434/0.6846, allocations: 0.9764 MB / 0.9581 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.6847, allocations: 9.469 kB / 0.9581 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0006022/0.6853, allocations: 156.9 kB / 0.9583 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.000241/0.6856, allocations: 99.19 kB / 0.9584 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004009/0.686, allocations: 156 kB / 0.9585 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002158/0.6862, allocations: 165.4 kB / 0.9587 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001149/0.6863, allocations: 30.58 kB / 0.9587 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.516e-05/0.6864, allocations: 65.86 kB / 0.9588 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001035/0.6865, allocations: 60.44 kB / 0.9588 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.907e-05/0.6866, allocations: 2.625 kB / 0.9588 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001275/0.6867, allocations: 56.84 kB / 0.9589 GB, free: 5.277 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.466e-05/0.6868, allocations: 40.08 kB / 0.9589 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.359e-05/0.6868, allocations: 85.84 kB / 0.959 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001808/0.687, allocations: 141.6 kB / 0.9591 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.687, allocations: 1.219 kB / 0.9591 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.693e-06/0.687, allocations: 0 / 0.9591 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.258e-06/0.6871, allocations: 0 / 0.9591 GB, free: 5.086 MB / 0.7169 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.0005704/0.6876, allocations: 476.8 kB / 0.9596 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.6877, allocations: 9.656 kB / 0.9596 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.928e-05/0.6877, allocations: 16.22 kB / 0.9596 GB, free: 4.598 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002446/0.688, allocations: 248 kB / 0.9598 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.861e-05/0.688, allocations: 6.062 kB / 0.9599 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.674e-05/0.688, allocations: 7.25 kB / 0.9599 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001696/0.6882, allocations: 83.16 kB / 0.9599 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.6882, allocations: 5.594 kB / 0.9599 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.21e-05/0.6882, allocations: 4 kB / 0.9599 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.824e-05/0.6883, allocations: 2.812 kB / 0.96 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.996e-05/0.6884, allocations: 35.91 kB / 0.96 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004262/0.6888, allocations: 359.3 kB / 0.9603 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001952/0.689, allocations: 75.48 kB / 0.9604 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.45e-05/0.6891, allocations: 35.97 kB / 0.9604 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.167e-05/0.6891, allocations: 9.312 kB / 0.9604 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001418/0.6893, allocations: 77.38 kB / 0.9605 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.503e-06/0.6893, allocations: 0 / 0.9605 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0003178/0.6896, allocations: 144.8 kB / 0.9607 GB, free: 3.652 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.176e-05/0.6896, allocations: 78.48 kB / 0.9607 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002202/0.6899, allocations: 264.3 kB / 0.961 GB, free: 3.383 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.206e-05/0.6899, allocations: 27.08 kB / 0.961 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.531e-05/0.6899, allocations: 124.4 kB / 0.9611 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.272e-05/0.69, allocations: 23.84 kB / 0.9611 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.546e-05/0.69, allocations: 17.84 kB / 0.9612 GB, free: 3.195 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.336e-05/0.6901, allocations: 336.2 kB / 0.9615 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.203e-05/0.6901, allocations: 31.05 kB / 0.9615 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.148e-05/0.6902, allocations: 57.42 kB / 0.9616 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001112/0.6903, allocations: 72.11 kB / 0.9616 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.6903, allocations: 0 / 0.9616 GB, free: 2.758 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001888/0.6905, allocations: 119.8 kB / 0.9618 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.6905, allocations: 4.375 kB / 0.9618 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.6906, allocations: 1.016 kB / 0.9618 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.6906, allocations: 5.062 kB / 0.9618 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.855e-05/0.6907, allocations: 16.67 kB / 0.9618 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.6907, allocations: 4.953 kB / 0.9618 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.252e-05/0.6907, allocations: 17.03 kB / 0.9618 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.6908, allocations: 2.406 kB / 0.9618 GB, free: 2.656 MB / 0.7169 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.0001024/0.6909, allocations: 147.6 kB / 0.9619 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.47e-05/0.6909, allocations: 19.2 kB / 0.962 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.943e-05/0.6909, allocations: 15.16 kB / 0.962 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.118e-05/0.691, allocations: 3.031 kB / 0.962 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.691, allocations: 0.8125 kB / 0.962 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.691, allocations: 3.938 kB / 0.962 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001467/0.6911, allocations: 231.6 kB / 0.9622 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.6911, allocations: 4 kB / 0.9622 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.121e-05/0.6912, allocations: 3.406 kB / 0.9622 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.337e-06/0.6912, allocations: 1.125 kB / 0.9622 GB, free: 2.246 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.6912, allocations: 4.844 kB / 0.9622 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.6912, allocations: 0 / 0.9622 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.6912, allocations: 0.7812 kB / 0.9622 GB, free: 2.242 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002131/0.6914, allocations: 149.8 kB / 0.9624 GB, free: 2.129 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.216e-05/0.6915, allocations: 102.3 kB / 0.9625 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.69e-05/0.6915, allocations: 2 kB / 0.9625 GB, free: 2.016 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.399e-05/0.6916, allocations: 10.98 kB / 0.9625 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.712e-05/0.6916, allocations: 3 kB / 0.9625 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.109e-05/0.6916, allocations: 14.86 kB / 0.9625 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001614/0.6918, allocations: 193.5 kB / 0.9627 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6918, allocations: 0 / 0.9627 GB, free: 1.871 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000253/0.692, allocations: 30.81 kB / 0.9627 GB, free: 1.863 MB / 0.7169 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.0009956/0.693, allocations: 433.5 kB / 0.9631 GB, free: 1.652 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002062/0.6933, allocations: 71.06 kB / 0.9632 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.6933, allocations: 0 / 0.9632 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.054e-05/0.6934, allocations: 38.73 kB / 0.9632 GB, free: 1.609 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.6937, allocations: 32.22 kB / 0.9633 GB, free: 1.594 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005269/0.6942, allocations: 363.2 kB / 0.9636 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001462/0.6944, allocations: 0.7278 MB / 0.9643 GB, free: 0.5898 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.226e-05/0.6944, allocations: 16.53 kB / 0.9643 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of SimCode: time 2.6e-07/0.6944, allocations: 0.75 kB / 0.9643 GB, free: 0.582 MB / 0.7169 GB Notification: Performance of Templates: time 0.004585/0.699, allocations: 2.519 MB / 0.9668 GB, free: 15.29 MB / 0.7325 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