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.001346/0.001346, allocations: 104.8 kB / 15.98 MB, free: 6.352 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.001376/0.001376, allocations: 193 kB / 16.91 MB, free: 6.184 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.447/1.447, allocations: 222.9 MB / 240.6 MB, free: 15.43 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.293/2.293, allocations: 390.2 MB / 0.665 GB, free: 0.9375 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 67.34 kB / 0.8127 GB, free: 33.24 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2638, allocations: 140.4 MB / 0.9498 GB, free: 9.266 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003751/0.2676, allocations: 1.825 MB / 0.9516 GB, free: 7.426 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001714/0.2693, allocations: 1.014 MB / 0.9525 GB, free: 6.402 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001252/0.2695, allocations: 3.938 kB / 0.9525 GB, free: 6.398 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0006921/0.2702, allocations: 155.7 kB / 0.9527 GB, free: 6.246 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003402/0.2705, allocations: 103.7 kB / 0.9528 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005173/0.271, allocations: 151.1 kB / 0.9529 GB, free: 6 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002695/0.2713, allocations: 167.6 kB / 0.9531 GB, free: 5.836 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001205/0.2714, allocations: 33.02 kB / 0.9531 GB, free: 5.805 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001494/0.2716, allocations: 75.69 kB / 0.9532 GB, free: 5.73 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001323/0.2717, allocations: 67.77 kB / 0.9533 GB, free: 5.664 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.525e-05/0.2718, allocations: 8 kB / 0.9533 GB, free: 5.656 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001703/0.272, allocations: 67.89 kB / 0.9533 GB, free: 5.59 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.835e-05/0.272, allocations: 47.78 kB / 0.9534 GB, free: 5.543 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.197e-05/0.2721, allocations: 63.61 kB / 0.9534 GB, free: 5.48 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002561/0.2724, allocations: 148 kB / 0.9536 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 7.784e-06/0.2724, allocations: 4 kB / 0.9536 GB, free: 5.332 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.182e-06/0.2724, allocations: 0 / 0.9536 GB, free: 5.332 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.504e-06/0.2724, allocations: 0 / 0.9536 GB, free: 5.332 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.0008345/0.2733, allocations: 496.2 kB / 0.9541 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.2733, allocations: 12.03 kB / 0.9541 GB, free: 4.781 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.897e-05/0.2734, allocations: 24.64 kB / 0.9541 GB, free: 4.758 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003138/0.2737, allocations: 244.8 kB / 0.9543 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.744e-05/0.2738, allocations: 4.375 kB / 0.9543 GB, free: 4.477 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.593e-05/0.2738, allocations: 8.125 kB / 0.9543 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002096/0.274, allocations: 95.25 kB / 0.9544 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.274, allocations: 0 / 0.9544 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.375e-05/0.274, allocations: 4 kB / 0.9544 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.962e-05/0.2741, allocations: 4 kB / 0.9544 GB, free: 4.355 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001116/0.2742, allocations: 35.98 kB / 0.9545 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005509/0.2747, allocations: 344.7 kB / 0.9548 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002062/0.2749, allocations: 78.61 kB / 0.9549 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.072e-05/0.275, allocations: 36.84 kB / 0.9549 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.2751, allocations: 4 kB / 0.9549 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000181/0.2752, allocations: 79.38 kB / 0.955 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 2.574e-06/0.2753, allocations: 0 / 0.955 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0004064/0.2757, allocations: 145.4 kB / 0.9551 GB, free: 3.566 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/0.2757, allocations: 77.11 kB / 0.9552 GB, free: 3.473 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002742/0.276, allocations: 270.9 kB / 0.9555 GB, free: 3.199 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.415e-05/0.276, allocations: 29.64 kB / 0.9555 GB, free: 3.164 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.289e-05/0.2761, allocations: 116.4 kB / 0.9556 GB, free: 3.047 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.32e-05/0.2762, allocations: 27.64 kB / 0.9556 GB, free: 3.02 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.96e-05/0.2762, allocations: 25.66 kB / 0.9557 GB, free: 2.988 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001342/0.2764, allocations: 342.7 kB / 0.956 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.648e-05/0.2764, allocations: 23.98 kB / 0.956 GB, free: 2.621 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.178e-05/0.2765, allocations: 63.42 kB / 0.9561 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001306/0.2767, allocations: 65.7 kB / 0.9561 GB, free: 2.477 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.122e-05/0.2767, allocations: 4 kB / 0.9561 GB, free: 2.473 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002153/0.2769, allocations: 117.4 kB / 0.9562 GB, free: 2.352 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.2769, allocations: 7.938 kB / 0.9562 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.277, allocations: 0 / 0.9562 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.598e-05/0.277, allocations: 8.062 kB / 0.9563 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.924e-05/0.2771, allocations: 11.98 kB / 0.9563 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.2771, allocations: 0 / 0.9563 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.354e-05/0.2771, allocations: 11.84 kB / 0.9563 GB, free: 2.312 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.2772, allocations: 4 kB / 0.9563 GB, free: 2.309 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.0001382/0.2773, allocations: 143.8 kB / 0.9564 GB, free: 2.16 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.952e-05/0.2773, allocations: 15.81 kB / 0.9564 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.899e-05/0.2774, allocations: 21.39 kB / 0.9565 GB, free: 2.125 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/0.2774, allocations: 4 kB / 0.9565 GB, free: 2.121 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.2774, allocations: 4 kB / 0.9565 GB, free: 2.117 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.024e-06/0.2774, allocations: 7.922 kB / 0.9565 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002111/0.2776, allocations: 225.5 kB / 0.9567 GB, free: 1.84 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.2777, allocations: 3.984 kB / 0.9567 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.492e-05/0.2777, allocations: 7.938 kB / 0.9567 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2777, allocations: 0 / 0.9567 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.946e-06/0.2777, allocations: 0 / 0.9567 GB, free: 1.828 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.2777, allocations: 4 kB / 0.9567 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2777, allocations: 4.031 kB / 0.9567 GB, free: 1.82 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000241/0.278, allocations: 152.8 kB / 0.9569 GB, free: 1.652 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.568e-05/0.278, allocations: 88.92 kB / 0.9569 GB, free: 1.547 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.177e-05/0.2781, allocations: 4 kB / 0.9569 GB, free: 1.543 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.795e-05/0.2781, allocations: 7.922 kB / 0.9569 GB, free: 1.535 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.837e-05/0.2782, allocations: 11.98 kB / 0.957 GB, free: 1.523 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.339e-05/0.2782, allocations: 7.938 kB / 0.957 GB, free: 1.516 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001774/0.2784, allocations: 192.4 kB / 0.9571 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.01e-07/0.2784, allocations: 0 / 0.9571 GB, free: 1.328 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002647/0.2787, allocations: 39.98 kB / 0.9572 GB, free: 1.289 MB / 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.001011/0.2797, allocations: 419.5 kB / 0.9576 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002342/0.2799, allocations: 75.89 kB / 0.9577 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2799, allocations: 0 / 0.9577 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 8.844e-05/0.28, allocations: 39.98 kB / 0.9577 GB, free: 0.918 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000303/0.2803, allocations: 41.23 kB / 0.9577 GB, free: 0.8789 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005966/0.2809, allocations: 368.7 kB / 0.9581 GB, free: 496 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003368/0.2813, allocations: 0.7316 MB / 0.9588 GB, free: 15.73 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.866e-05/0.2813, allocations: 15.44 kB / 0.9588 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of SimCode: time 2.41e-07/0.2814, allocations: 0 / 0.9588 GB, free: 15.71 MB / 0.7481 GB Notification: Performance of Templates: time 0.005259/0.2866, allocations: 2.56 MB / 0.9613 GB, free: 13.17 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 -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