Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001762/0.001762, allocations: 102.2 kB / 16.27 MB, free: 6 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.001885/0.001885, allocations: 191 kB / 17.2 MB, free: 5.609 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.456/1.456, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.809/2.809, allocations: 482.4 MB / 0.7553 GB, free: 6.992 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001942/0.001942, allocations: 70.72 kB / 0.9245 GB, free: 15.99 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7286/0.7306, allocations: 162.2 MB / 1.083 GB, free: 1.648 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003103/0.7337, allocations: 1.787 MB / 1.085 GB, free: 404 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001638/0.7354, allocations: 1.014 MB / 1.086 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.243e-05/0.7355, allocations: 1.125 kB / 1.086 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0006323/0.7361, allocations: 172.4 kB / 1.086 GB, free: 15.64 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0003099/0.7364, allocations: 117.9 kB / 1.086 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004764/0.7369, allocations: 165.7 kB / 1.086 GB, free: 15.51 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002532/0.7372, allocations: 169.6 kB / 1.086 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.7373, allocations: 22.02 kB / 1.086 GB, free: 15.43 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.7374, allocations: 67.5 kB / 1.086 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001272/0.7376, allocations: 74.36 kB / 1.086 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.663e-05/0.7376, allocations: 8.031 kB / 1.086 GB, free: 15.37 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001566/0.7378, allocations: 57.44 kB / 1.086 GB, free: 15.35 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 8.104e-05/0.7378, allocations: 40.58 kB / 1.086 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 8.447e-05/0.7379, allocations: 64.17 kB / 1.087 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0003255/0.7383, allocations: 193.9 kB / 1.087 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.7383, allocations: 0 / 1.087 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.142e-06/0.7383, allocations: 4 kB / 1.087 GB, free: 15.21 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.601e-06/0.7383, allocations: 0.9062 kB / 1.087 GB, free: 15.21 MB / 0.8419 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.0007961/0.7391, allocations: 497.3 kB / 1.087 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.7391, allocations: 9.844 kB / 1.087 GB, free: 14.73 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.422e-05/0.7392, allocations: 20.39 kB / 1.087 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003412/0.7396, allocations: 253.2 kB / 1.087 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.7396, allocations: 2.812 kB / 1.087 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.339e-05/0.7396, allocations: 11.67 kB / 1.088 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002235/0.7398, allocations: 91.55 kB / 1.088 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.7399, allocations: 0 / 1.088 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.7399, allocations: 1.312 kB / 1.088 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.834e-05/0.7399, allocations: 3.5 kB / 1.088 GB, free: 14.41 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001016/0.74, allocations: 35.77 kB / 1.088 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000578/0.7406, allocations: 357.4 kB / 1.088 GB, free: 14.08 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002048/0.7408, allocations: 79.66 kB / 1.088 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.098e-05/0.7409, allocations: 31.75 kB / 1.088 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.989e-05/0.7409, allocations: 1.781 kB / 1.088 GB, free: 14.02 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001982/0.7411, allocations: 83.59 kB / 1.088 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=10): time 1.753e-06/0.7411, allocations: 4 kB / 1.088 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10): time 0.0003827/0.7415, allocations: 146 kB / 1.088 GB, free: 13.88 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.944e-05/0.7416, allocations: 78.17 kB / 1.088 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003248/0.7419, allocations: 261.1 kB / 1.089 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.305e-05/0.742, allocations: 31.52 kB / 1.089 GB, free: 13.6 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.094e-05/0.7421, allocations: 112.3 kB / 1.089 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.377e-05/0.7421, allocations: 26.2 kB / 1.089 GB, free: 13.48 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.646e-05/0.7422, allocations: 29.72 kB / 1.089 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001865/0.7424, allocations: 333.3 kB / 1.089 GB, free: 13.13 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.317e-05/0.7425, allocations: 25.92 kB / 1.089 GB, free: 13.12 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.7426, allocations: 59.19 kB / 1.089 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001435/0.7427, allocations: 77.59 kB / 1.089 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.7427, allocations: 0 / 1.089 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002294/0.743, allocations: 118.2 kB / 1.089 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.743, allocations: 6.438 kB / 1.089 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-06/0.743, allocations: 1.219 kB / 1.089 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.743, allocations: 0 / 1.089 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.746e-05/0.7431, allocations: 12.25 kB / 1.089 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.19e-06/0.7431, allocations: 0.6094 kB / 1.089 GB, free: 12.97 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.884e-05/0.7432, allocations: 16.81 kB / 1.089 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.405e-06/0.7432, allocations: 2.562 kB / 1.089 GB, free: 12.96 MB / 0.8419 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.000154/0.7434, allocations: 148.5 kB / 1.09 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.28e-05/0.7434, allocations: 16.8 kB / 1.09 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.422e-05/0.7435, allocations: 21.62 kB / 1.09 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.164e-05/0.7435, allocations: 4.375 kB / 1.09 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.7435, allocations: 0 / 1.09 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.7435, allocations: 8.672 kB / 1.09 GB, free: 12.8 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002524/0.7438, allocations: 226.2 kB / 1.09 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.46e-06/0.7438, allocations: 6.297 kB / 1.09 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.177e-05/0.7438, allocations: 3.328 kB / 1.09 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.7438, allocations: 1.219 kB / 1.09 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.7438, allocations: 9.969 kB / 1.09 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.7438, allocations: 0 / 1.09 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.7438, allocations: 1.703 kB / 1.09 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002518/0.7441, allocations: 144.1 kB / 1.09 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.333e-05/0.7442, allocations: 94.53 kB / 1.09 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.283e-05/0.7442, allocations: 6.25 kB / 1.09 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.117e-05/0.7443, allocations: 3.859 kB / 1.09 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.344e-05/0.7443, allocations: 12.98 kB / 1.09 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-05/0.7444, allocations: 7.984 kB / 1.09 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002033/0.7446, allocations: 195.1 kB / 1.09 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7446, allocations: 0 / 1.09 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002588/0.7448, allocations: 29.5 kB / 1.09 GB, free: 12.23 MB / 0.8419 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.00156/0.7464, allocations: 425.7 kB / 1.091 GB, free: 12.04 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002418/0.7467, allocations: 84.45 kB / 1.091 GB, free: 12 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.7467, allocations: 0 / 1.091 GB, free: 12 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 9.097e-05/0.7468, allocations: 34.44 kB / 1.091 GB, free: 12 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003143/0.7471, allocations: 35.48 kB / 1.091 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006382/0.7477, allocations: 334 kB / 1.091 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003767/0.7481, allocations: 0.7215 MB / 1.092 GB, free: 11.06 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.716e-05/0.7482, allocations: 18.09 kB / 1.092 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of SimCode: time 2.6e-07/0.7482, allocations: 4 kB / 1.092 GB, free: 11.05 MB / 0.8419 GB Notification: Performance of Templates: time 0.005754/0.7539, allocations: 2.545 MB / 1.094 GB, free: 10.75 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_BooleanReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches