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.001477/0.001477, allocations: 112.2 kB / 16.37 MB, free: 5.953 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.001753/0.001753, allocations: 190.2 kB / 17.3 MB, free: 5.578 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.347/1.347, allocations: 222.9 MB / 241 MB, free: 15.1 MB / 206.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.196/2.196, allocations: 390.3 MB / 0.6655 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 60.66 kB / 0.814 GB, free: 32.7 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2593, allocations: 140.4 MB / 0.9511 GB, free: 8.023 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003245/0.2626, allocations: 1.789 MB / 0.9529 GB, free: 6.227 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001705/0.2643, allocations: 1.022 MB / 0.9539 GB, free: 5.195 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.634e-05/0.2644, allocations: 3.938 kB / 0.9539 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0006453/0.2651, allocations: 163.5 kB / 0.954 GB, free: 5.031 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002733/0.2654, allocations: 115.6 kB / 0.9541 GB, free: 4.918 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004348/0.2658, allocations: 171.3 kB / 0.9543 GB, free: 4.754 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002199/0.266, allocations: 163.6 kB / 0.9545 GB, free: 4.594 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001201/0.2662, allocations: 25.09 kB / 0.9545 GB, free: 4.57 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.2663, allocations: 71.75 kB / 0.9545 GB, free: 4.5 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.2664, allocations: 63.75 kB / 0.9546 GB, free: 4.438 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.247e-05/0.2664, allocations: 12 kB / 0.9546 GB, free: 4.426 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001523/0.2666, allocations: 71.89 kB / 0.9547 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 6.917e-05/0.2667, allocations: 43.84 kB / 0.9547 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.384e-05/0.2667, allocations: 59.61 kB / 0.9548 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002746/0.267, allocations: 203.3 kB / 0.955 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.267, allocations: 0 / 0.955 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.402e-06/0.267, allocations: 0 / 0.955 GB, free: 4.055 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 5.981e-06/0.267, allocations: 0 / 0.955 GB, free: 4.055 MB / 0.7325 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.0006534/0.2677, allocations: 497.1 kB / 0.9555 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.2677, allocations: 12.03 kB / 0.9555 GB, free: 3.504 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.033e-05/0.2678, allocations: 24.64 kB / 0.9555 GB, free: 3.48 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003509/0.2682, allocations: 248.8 kB / 0.9557 GB, free: 3.195 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.2682, allocations: 4.375 kB / 0.9557 GB, free: 3.191 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.679e-05/0.2682, allocations: 4.125 kB / 0.9557 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00018/0.2684, allocations: 91.38 kB / 0.9558 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.573e-06/0.2684, allocations: 0 / 0.9558 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.2684, allocations: 0 / 0.9558 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.061e-05/0.2685, allocations: 8 kB / 0.9558 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.243e-05/0.2685, allocations: 31.92 kB / 0.9559 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005003/0.2691, allocations: 352.7 kB / 0.9562 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001874/0.2693, allocations: 74.67 kB / 0.9563 GB, free: 2.57 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.739e-05/0.2693, allocations: 40.78 kB / 0.9563 GB, free: 2.527 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.964e-05/0.2694, allocations: 0 / 0.9563 GB, free: 2.527 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001664/0.2695, allocations: 87.36 kB / 0.9564 GB, free: 2.43 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.2696, allocations: 0 / 0.9564 GB, free: 2.43 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.000346/0.2699, allocations: 149.3 kB / 0.9565 GB, free: 2.277 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.761e-05/0.27, allocations: 77.11 kB / 0.9566 GB, free: 2.184 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002631/0.2702, allocations: 259 kB / 0.9568 GB, free: 1.918 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.2703, allocations: 33.7 kB / 0.9569 GB, free: 1.879 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.498e-05/0.2703, allocations: 116.1 kB / 0.957 GB, free: 1.762 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.897e-05/0.2704, allocations: 27.64 kB / 0.957 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.533e-05/0.2704, allocations: 21.83 kB / 0.957 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.2706, allocations: 338.7 kB / 0.9574 GB, free: 1.367 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.831e-05/0.2706, allocations: 31.98 kB / 0.9574 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.783e-05/0.2707, allocations: 63.42 kB / 0.9575 GB, free: 1.262 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001206/0.2709, allocations: 69.64 kB / 0.9575 GB, free: 1.188 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.2709, allocations: 0 / 0.9575 GB, free: 1.188 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002044/0.2711, allocations: 121.4 kB / 0.9576 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.2711, allocations: 6.031 kB / 0.9576 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.2711, allocations: 0 / 0.9576 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.2711, allocations: 0 / 0.9576 GB, free: 1.059 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.955e-05/0.2712, allocations: 15.98 kB / 0.9577 GB, free: 1.043 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.822e-06/0.2712, allocations: 8.375 kB / 0.9577 GB, free: 1.035 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.736e-05/0.2713, allocations: 11.84 kB / 0.9577 GB, free: 1.023 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.2713, allocations: 4 kB / 0.9577 GB, free: 1.02 MB / 0.7325 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.0001239/0.2714, allocations: 142.3 kB / 0.9578 GB, free: 0.8711 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.696e-05/0.2715, allocations: 19.75 kB / 0.9578 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.719e-05/0.2715, allocations: 17.39 kB / 0.9579 GB, free: 0.8359 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.2715, allocations: 4 kB / 0.9579 GB, free: 0.832 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2716, allocations: 0 / 0.9579 GB, free: 0.832 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.2716, allocations: 7.938 kB / 0.9579 GB, free: 0.8242 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001907/0.2718, allocations: 229.5 kB / 0.9581 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2718, allocations: 0 / 0.9581 GB, free: 0.5508 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.087e-05/0.2718, allocations: 4 kB / 0.9581 GB, free: 0.5469 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.2718, allocations: 3.984 kB / 0.9581 GB, free: 0.543 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.118e-06/0.2718, allocations: 0 / 0.9581 GB, free: 0.543 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.2718, allocations: 0 / 0.9581 GB, free: 0.543 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2718, allocations: 0 / 0.9581 GB, free: 0.543 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002231/0.2721, allocations: 156.8 kB / 0.9582 GB, free: 380 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.414e-05/0.2721, allocations: 88.92 kB / 0.9583 GB, free: 272 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.566e-05/0.2722, allocations: 0 / 0.9583 GB, free: 272 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.93e-05/0.2722, allocations: 11.92 kB / 0.9583 GB, free: 260 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.9e-05/0.2723, allocations: 11.98 kB / 0.9583 GB, free: 248 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/0.2723, allocations: 7.938 kB / 0.9584 GB, free: 240 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001684/0.2724, allocations: 195.2 kB / 0.9585 GB, free: 44 kB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2724, allocations: 0 / 0.9585 GB, free: 44 kB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000235/0.2727, allocations: 24 kB / 0.9586 GB, free: 20 kB / 0.7325 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.0009524/0.2736, allocations: 415.2 kB / 0.959 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002068/0.2739, allocations: 75.95 kB / 0.959 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2739, allocations: 0 / 0.959 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 8.085e-05/0.274, allocations: 43.92 kB / 0.9591 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.2742, allocations: 45.36 kB / 0.9591 GB, free: 15.61 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004784/0.2747, allocations: 303.1 kB / 0.9594 GB, free: 15.28 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002903/0.275, allocations: 0.7239 MB / 0.9601 GB, free: 14.53 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.254e-05/0.2751, allocations: 21.72 kB / 0.9601 GB, free: 14.51 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.339e-05/0.2752, allocations: 23.42 kB / 0.9602 GB, free: 14.49 MB / 0.7481 GB Notification: Performance of SimCode: time 2.975e-06/0.2752, allocations: 0 / 0.9602 GB, free: 14.49 MB / 0.7481 GB Notification: Performance of Templates: time 0.005183/0.2804, allocations: 2.28 MB / 0.9624 GB, free: 12.23 MB / 0.7481 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 -s gbode -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