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.00138/0.001381, allocations: 104.8 kB / 16.27 MB, free: 5.977 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.001634/0.001634, allocations: 189.8 kB / 17.19 MB, free: 5.605 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.406/1.406, allocations: 222.9 MB / 240.9 MB, free: 15.19 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.278/2.278, allocations: 390.3 MB / 0.6653 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 68.61 kB / 0.8132 GB, free: 33.02 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.2693, allocations: 140.4 MB / 0.9503 GB, free: 8.895 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003751/0.2731, allocations: 1.783 MB / 0.952 GB, free: 7.094 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001865/0.275, allocations: 1.022 MB / 0.953 GB, free: 6.062 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001546/0.2752, allocations: 0 / 0.953 GB, free: 6.062 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0006731/0.2759, allocations: 163.5 kB / 0.9532 GB, free: 5.902 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003561/0.2763, allocations: 115.6 kB / 0.9533 GB, free: 5.789 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005207/0.2768, allocations: 171.3 kB / 0.9534 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000279/0.2771, allocations: 175.6 kB / 0.9536 GB, free: 5.453 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.2772, allocations: 17.11 kB / 0.9536 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002045/0.2774, allocations: 75.69 kB / 0.9537 GB, free: 5.363 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001405/0.2776, allocations: 67.7 kB / 0.9538 GB, free: 5.297 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.859e-05/0.2776, allocations: 8 kB / 0.9538 GB, free: 5.289 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001802/0.2778, allocations: 55.95 kB / 0.9538 GB, free: 5.234 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.839e-05/0.2779, allocations: 47.84 kB / 0.9539 GB, free: 5.188 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.275e-05/0.278, allocations: 59.61 kB / 0.9539 GB, free: 5.129 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0003827/0.2784, allocations: 195.7 kB / 0.9541 GB, free: 4.938 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.2784, allocations: 4 kB / 0.9541 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of FrontEnd: time 3.497e-06/0.2784, allocations: 4 kB / 0.9541 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.045e-06/0.2784, allocations: 3.938 kB / 0.9541 GB, free: 4.926 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.0008186/0.2792, allocations: 488.3 kB / 0.9546 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.2793, allocations: 12.03 kB / 0.9546 GB, free: 4.383 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.046e-05/0.2794, allocations: 20.66 kB / 0.9546 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003257/0.2797, allocations: 244.9 kB / 0.9548 GB, free: 4.086 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.2797, allocations: 8.312 kB / 0.9549 GB, free: 4.078 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.304e-05/0.2797, allocations: 20.12 kB / 0.9549 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002091/0.28, allocations: 83.38 kB / 0.9549 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.28, allocations: 0 / 0.9549 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.28, allocations: 3.938 kB / 0.955 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.086e-05/0.28, allocations: 4 kB / 0.955 GB, free: 3.957 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001001/0.2801, allocations: 35.98 kB / 0.955 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005799/0.2807, allocations: 364.6 kB / 0.9553 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001919/0.2809, allocations: 70.67 kB / 0.9554 GB, free: 3.438 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.681e-05/0.281, allocations: 32.84 kB / 0.9554 GB, free: 3.402 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.124e-05/0.281, allocations: 7.938 kB / 0.9554 GB, free: 3.395 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001764/0.2812, allocations: 83.33 kB / 0.9555 GB, free: 3.301 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.2812, allocations: 0 / 0.9555 GB, free: 3.301 MB / 0.7325 GB Notification: Performance of matching and sorting (n=10): time 0.0003636/0.2816, allocations: 145.4 kB / 0.9557 GB, free: 3.152 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.2817, allocations: 81.09 kB / 0.9557 GB, free: 3.055 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002734/0.2819, allocations: 262.8 kB / 0.956 GB, free: 2.789 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.976e-05/0.282, allocations: 29.7 kB / 0.956 GB, free: 2.754 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.838e-05/0.2821, allocations: 112.1 kB / 0.9561 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.02e-05/0.2821, allocations: 23.66 kB / 0.9561 GB, free: 2.617 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.687e-05/0.2822, allocations: 37.69 kB / 0.9562 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.2823, allocations: 330.8 kB / 0.9565 GB, free: 2.242 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.804e-05/0.2824, allocations: 23.98 kB / 0.9565 GB, free: 2.219 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.031e-05/0.2825, allocations: 63.41 kB / 0.9566 GB, free: 2.145 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000137/0.2826, allocations: 69.64 kB / 0.9567 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2826, allocations: 8.031 kB / 0.9567 GB, free: 2.062 MB / 0.7325 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002112/0.2829, allocations: 113.4 kB / 0.9568 GB, free: 1.945 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.2829, allocations: 4.375 kB / 0.9568 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.2829, allocations: 0 / 0.9568 GB, free: 1.941 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.414e-05/0.2829, allocations: 4 kB / 0.9568 GB, free: 1.938 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.003e-05/0.283, allocations: 11.98 kB / 0.9568 GB, free: 1.926 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.225e-06/0.283, allocations: 4.047 kB / 0.9568 GB, free: 1.922 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.089e-05/0.2831, allocations: 15.78 kB / 0.9568 GB, free: 1.906 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.409e-05/0.2831, allocations: 8 kB / 0.9568 GB, free: 1.898 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.0001256/0.2832, allocations: 142.3 kB / 0.9569 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.159e-05/0.2833, allocations: 15.81 kB / 0.957 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.925e-05/0.2833, allocations: 25.39 kB / 0.957 GB, free: 1.711 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.318e-06/0.2834, allocations: 0 / 0.957 GB, free: 1.711 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.2834, allocations: 4 kB / 0.957 GB, free: 1.707 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2834, allocations: 3.938 kB / 0.957 GB, free: 1.703 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002009/0.2836, allocations: 217.5 kB / 0.9572 GB, free: 1.441 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-06/0.2836, allocations: 0 / 0.9572 GB, free: 1.441 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.974e-05/0.2836, allocations: 4 kB / 0.9572 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.2836, allocations: 7.984 kB / 0.9572 GB, free: 1.43 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.342e-05/0.2837, allocations: 8 kB / 0.9572 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.369e-06/0.2837, allocations: 4 kB / 0.9572 GB, free: 1.418 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2837, allocations: 0 / 0.9572 GB, free: 1.418 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003004/0.284, allocations: 144.8 kB / 0.9574 GB, free: 1.258 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.379e-05/0.2841, allocations: 92.91 kB / 0.9575 GB, free: 1.148 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.754e-05/0.2841, allocations: 4 kB / 0.9575 GB, free: 1.145 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.114e-05/0.2842, allocations: 8 kB / 0.9575 GB, free: 1.137 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.607e-05/0.2843, allocations: 7.984 kB / 0.9575 GB, free: 1.129 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.701e-05/0.2843, allocations: 7.938 kB / 0.9575 GB, free: 1.121 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002482/0.2846, allocations: 188.6 kB / 0.9577 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2846, allocations: 0 / 0.9577 GB, free: 0.9375 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.000254/0.2848, allocations: 35.98 kB / 0.9577 GB, free: 0.9023 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.0009942/0.2858, allocations: 430.4 kB / 0.9581 GB, free: 0.6367 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0002259/0.2861, allocations: 79.91 kB / 0.9582 GB, free: 0.5586 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.2861, allocations: 0 / 0.9582 GB, free: 0.5586 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.2862, allocations: 39.92 kB / 0.9582 GB, free: 0.5195 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003084/0.2865, allocations: 47.2 kB / 0.9583 GB, free: 492 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005845/0.2871, allocations: 336.8 kB / 0.9586 GB, free: 120 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003189/0.2874, allocations: 0.72 MB / 0.9593 GB, free: 15.37 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.594e-05/0.2875, allocations: 27.42 kB / 0.9593 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of SimCode: time 3.1e-07/0.2875, allocations: 0 / 0.9593 GB, free: 15.34 MB / 0.7481 GB Notification: Performance of Templates: time 0.005023/0.2925, allocations: 2.541 MB / 0.9618 GB, free: 12.81 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