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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009126/0.009126, allocations: 101.3 kB / 15.73 MB, free: 6.012 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.001895/0.001895, allocations: 194.4 kB / 16.67 MB, free: 5.949 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.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.782/2.782, allocations: 461.9 MB / 0.7348 GB, free: 14.6 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001345/0.001346, allocations: 64.12 kB / 1.054 GB, free: 7.66 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3314/0.3327, allocations: 157.4 MB / 1.207 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003335/0.3361, allocations: 1.78 MB / 1.209 GB, free: 8.367 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001747/0.3379, allocations: 1.029 MB / 1.21 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001068/0.338, allocations: 3.938 kB / 1.21 GB, free: 7.328 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.00064/0.3386, allocations: 167.5 kB / 1.21 GB, free: 7.164 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002938/0.3389, allocations: 111.6 kB / 1.21 GB, free: 7.055 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.00048/0.3394, allocations: 178.2 kB / 1.21 GB, free: 6.883 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002323/0.3397, allocations: 163.6 kB / 1.211 GB, free: 6.723 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.3398, allocations: 25.09 kB / 1.211 GB, free: 6.699 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001226/0.3399, allocations: 67.75 kB / 1.211 GB, free: 6.633 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001186/0.34, allocations: 67.75 kB / 1.211 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.276e-05/0.3401, allocations: 12 kB / 1.211 GB, free: 6.555 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000148/0.3402, allocations: 63.91 kB / 1.211 GB, free: 6.492 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 7.099e-05/0.3403, allocations: 43.84 kB / 1.211 GB, free: 6.449 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.914e-05/0.3404, allocations: 63.59 kB / 1.211 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002933/0.3407, allocations: 191.6 kB / 1.211 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.3407, allocations: 4 kB / 1.211 GB, free: 6.195 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.272e-06/0.3407, allocations: 0 / 1.211 GB, free: 6.195 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.576e-06/0.3407, allocations: 0 / 1.211 GB, free: 6.195 MB / 0.9669 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.0007842/0.3415, allocations: 0.4924 MB / 1.212 GB, free: 5.648 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 9.122e-05/0.3416, allocations: 12.62 kB / 1.212 GB, free: 5.637 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.436e-05/0.3417, allocations: 34.75 kB / 1.212 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.254e-05/0.3417, allocations: 16.75 kB / 1.212 GB, free: 5.578 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002926/0.342, allocations: 252.7 kB / 1.212 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.241e-05/0.342, allocations: 384 / 1.212 GB, free: 5.289 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.918e-05/0.3421, allocations: 11.94 kB / 1.212 GB, free: 5.277 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001952/0.3423, allocations: 87.31 kB / 1.212 GB, free: 5.18 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.3423, allocations: 3.984 kB / 1.212 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001008/0.3424, allocations: 8 kB / 1.212 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.144e-05/0.3424, allocations: 4 kB / 1.212 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001011/0.3425, allocations: 39.92 kB / 1.212 GB, free: 5.125 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004883/0.343, allocations: 344.8 kB / 1.212 GB, free: 4.738 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001946/0.3432, allocations: 74.62 kB / 1.212 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.955e-05/0.3433, allocations: 36.84 kB / 1.212 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.771e-05/0.3433, allocations: 0 / 1.212 GB, free: 4.617 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001607/0.3435, allocations: 79.38 kB / 1.213 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.854e-06/0.3435, allocations: 0 / 1.213 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0003304/0.3438, allocations: 145.4 kB / 1.213 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.674e-05/0.3439, allocations: 81.11 kB / 1.213 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002588/0.3442, allocations: 268.1 kB / 1.213 GB, free: 4.012 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.828e-05/0.3442, allocations: 29.7 kB / 1.213 GB, free: 3.977 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 7.307e-05/0.3443, allocations: 116.1 kB / 1.213 GB, free: 3.859 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.057e-05/0.3443, allocations: 23.66 kB / 1.213 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.873e-05/0.3444, allocations: 33.7 kB / 1.213 GB, free: 3.797 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001952/0.3446, allocations: 326.9 kB / 1.214 GB, free: 3.469 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.803e-05/0.3446, allocations: 31.92 kB / 1.214 GB, free: 3.438 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.499e-05/0.3447, allocations: 63.34 kB / 1.214 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001309/0.3449, allocations: 74.02 kB / 1.214 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3449, allocations: 0 / 1.214 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001993/0.3451, allocations: 113.4 kB / 1.214 GB, free: 3.168 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.3451, allocations: 8 kB / 1.214 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.3451, allocations: 0 / 1.214 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.3451, allocations: 0 / 1.214 GB, free: 3.16 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.212e-05/0.3452, allocations: 16 kB / 1.214 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.3452, allocations: 0 / 1.214 GB, free: 3.145 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.569e-05/0.3453, allocations: 19.83 kB / 1.214 GB, free: 3.125 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.647e-06/0.3453, allocations: 7.984 kB / 1.214 GB, free: 3.117 MB / 0.9669 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.0001798/0.3455, allocations: 142.3 kB / 1.214 GB, free: 2.969 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.81e-05/0.3455, allocations: 15.81 kB / 1.214 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.517e-05/0.3456, allocations: 21.39 kB / 1.214 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/0.3456, allocations: 4 kB / 1.214 GB, free: 2.926 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.3456, allocations: 4 kB / 1.214 GB, free: 2.922 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.338e-06/0.3456, allocations: 3.938 kB / 1.214 GB, free: 2.918 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001883/0.3458, allocations: 221.5 kB / 1.214 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3458, allocations: 0 / 1.214 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.317e-05/0.3458, allocations: 4 kB / 1.214 GB, free: 2.648 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.3458, allocations: 0 / 1.214 GB, free: 2.648 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.3459, allocations: 11.98 kB / 1.214 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.3459, allocations: 4 kB / 1.214 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.3459, allocations: 0 / 1.214 GB, free: 2.633 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002274/0.3461, allocations: 144.8 kB / 1.214 GB, free: 2.473 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.033e-05/0.3462, allocations: 92.91 kB / 1.214 GB, free: 2.363 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.162e-05/0.3462, allocations: 8 kB / 1.215 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.172e-05/0.3463, allocations: 0 / 1.215 GB, free: 2.355 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.744e-05/0.3463, allocations: 15.86 kB / 1.215 GB, free: 2.34 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.221e-05/0.3463, allocations: 4 kB / 1.215 GB, free: 2.336 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0001744/0.3465, allocations: 195.3 kB / 1.215 GB, free: 2.145 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3465, allocations: 3.938 kB / 1.215 GB, free: 2.141 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002597/0.3468, allocations: 31.98 kB / 1.215 GB, free: 2.109 MB / 0.9669 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.001352/0.3482, allocations: 1 MB / 1.216 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002109/0.3484, allocations: 71.91 kB / 1.216 GB, free: 1.176 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3484, allocations: 4.062 kB / 1.216 GB, free: 1.172 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 8.657e-05/0.3485, allocations: 43.91 kB / 1.216 GB, free: 1.129 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003072/0.3488, allocations: 43.62 kB / 1.216 GB, free: 1.086 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002247/0.3511, allocations: 1.958 MB / 1.218 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002767/0.3513, allocations: 0.7279 MB / 1.218 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.493e-05/0.3514, allocations: 21.41 kB / 1.219 GB, free: 14.27 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.999e-05/0.3515, allocations: 47.42 kB / 1.219 GB, free: 14.23 MB / 0.9825 GB Notification: Performance of SimCode: time 3.3e-07/0.3515, allocations: 0 / 1.219 GB, free: 14.23 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02218/0.3737, allocations: 4.567 MB / 1.223 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.917/8.291, allocations: 7.203 kB / 1.223 GB, free: 9.781 MB / 0.9825 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_BooleanReplicator_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_BooleanReplicator.fmu > 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) "" Variables in the reference:time,booRep.u,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4] Variables in the result:booRep.nout,booRep.u,booRep.y[1],booRep.y[2],booRep.y[3],booRep.y[4],booTab.combiTimeTable.columns[1],booTab.combiTimeTable.extrapolation,booTab.combiTimeTable.nout,booTab.combiTimeTable.offset[1],booTab.combiTimeTable.shiftTime,booTab.combiTimeTable.smoothness,booTab.combiTimeTable.startTime,booTab.combiTimeTable.t_max,booTab.combiTimeTable.t_maxScaled,booTab.combiTimeTable.t_min,booTab.combiTimeTable.t_minScaled,booTab.combiTimeTable.tableOnFile,booTab.combiTimeTable.table[1,1],booTab.combiTimeTable.table[1,2],booTab.combiTimeTable.table[2,1],booTab.combiTimeTable.table[2,2],booTab.combiTimeTable.table[3,1],booTab.combiTimeTable.table[3,2],booTab.combiTimeTable.table[4,1],booTab.combiTimeTable.table[4,2],booTab.combiTimeTable.table[5,1],booTab.combiTimeTable.table[5,2],booTab.combiTimeTable.timeEvents,booTab.combiTimeTable.timeScale,booTab.combiTimeTable.verboseExtrapolation,booTab.combiTimeTable.verboseRead,booTab.combiTimeTable.y[1],booTab.extrapolation,booTab.realToBoolean.threshold,booTab.realToBoolean.u,booTab.realToBoolean.y,booTab.shiftTime,booTab.startTime,booTab.startValue,booTab.table[1],booTab.table[2],booTab.table[3],booTab.table[4],booTab.y,time