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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_BooleanReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.BooleanReplicator,fileNamePrefix="Buildings_9_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.007678/0.007678, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.0017/0.0017, allocations: 196.8 kB / 16.67 MB, free: 5.926 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 15.09 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.235/2.235, allocations: 390.3 MB / 0.6648 GB, free: 0.6875 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 71.89 kB / 0.9504 GB, free: 8.191 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.955/0.9564, allocations: 140.4 MB / 1.087 GB, free: 5.297 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.BooleanReplicator): time 0.003273/0.9598, allocations: 1.782 MB / 1.089 GB, free: 4.055 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001629/0.9614, allocations: 1.034 MB / 1.09 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.485e-05/0.9615, allocations: 5.094 kB / 1.09 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0006938/0.9622, allocations: 164.3 kB / 1.09 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003091/0.9625, allocations: 107.1 kB / 1.09 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004892/0.963, allocations: 172.1 kB / 1.091 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002648/0.9633, allocations: 170.2 kB / 1.091 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.9634, allocations: 26.88 kB / 1.091 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.9636, allocations: 72.05 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001372/0.9637, allocations: 69.62 kB / 1.091 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.793e-05/0.9637, allocations: 8.062 kB / 1.091 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001926/0.9639, allocations: 63.48 kB / 1.091 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.793e-05/0.964, allocations: 40.48 kB / 1.091 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.141e-05/0.9641, allocations: 63.78 kB / 1.091 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003365/0.9645, allocations: 196.9 kB / 1.091 GB, free: 2.852 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.9645, allocations: 8 kB / 1.091 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.475e-06/0.9645, allocations: 0 / 1.091 GB, free: 2.844 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.476e-06/0.9645, allocations: 0.8438 kB / 1.091 GB, free: 2.844 MB / 0.8575 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.0009531/0.9655, allocations: 493.5 kB / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.676e-05/0.9655, allocations: 10.27 kB / 1.092 GB, free: 2.375 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.27e-05/0.9656, allocations: 38.44 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.767e-05/0.9656, allocations: 15.97 kB / 1.092 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003973/0.966, allocations: 237.9 kB / 1.092 GB, free: 2.094 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.9661, allocations: 10.34 kB / 1.092 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.103e-05/0.9661, allocations: 12.25 kB / 1.092 GB, free: 2.078 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002543/0.9664, allocations: 90.86 kB / 1.092 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.9664, allocations: 0.5625 kB / 1.092 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.621e-05/0.9664, allocations: 1 kB / 1.092 GB, free: 2.012 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.494e-05/0.9664, allocations: 7.703 kB / 1.092 GB, free: 2.008 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001203/0.9666, allocations: 36.17 kB / 1.092 GB, free: 1.996 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005559/0.9671, allocations: 360.3 kB / 1.093 GB, free: 1.676 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001937/0.9673, allocations: 75.67 kB / 1.093 GB, free: 1.633 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.469e-05/0.9674, allocations: 32.36 kB / 1.093 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.42e-05/0.9674, allocations: 5.969 kB / 1.093 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001732/0.9676, allocations: 82.78 kB / 1.093 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.744e-06/0.9676, allocations: 0 / 1.093 GB, free: 1.551 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0003712/0.968, allocations: 145 kB / 1.093 GB, free: 1.48 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.129e-05/0.9681, allocations: 79.16 kB / 1.093 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003223/0.9684, allocations: 262.3 kB / 1.093 GB, free: 1.234 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.808e-05/0.9684, allocations: 30.83 kB / 1.093 GB, free: 1.199 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 8.703e-05/0.9685, allocations: 119.8 kB / 1.093 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.686e-05/0.9685, allocations: 22.38 kB / 1.093 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.093e-05/0.9686, allocations: 33.75 kB / 1.093 GB, free: 1.047 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001014/0.9687, allocations: 328.8 kB / 1.094 GB, free: 0.7266 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.824e-05/0.9688, allocations: 26.45 kB / 1.094 GB, free: 0.7188 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.753e-05/0.9689, allocations: 55.73 kB / 1.094 GB, free: 0.6797 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001462/0.9691, allocations: 72.86 kB / 1.094 GB, free: 0.6406 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.9691, allocations: 4 kB / 1.094 GB, free: 0.6367 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002196/0.9693, allocations: 119.5 kB / 1.094 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.9693, allocations: 5.938 kB / 1.094 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.9693, allocations: 0 / 1.094 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.9693, allocations: 1.469 kB / 1.094 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.633e-05/0.9694, allocations: 10.59 kB / 1.094 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.082e-05/0.9695, allocations: 2.109 kB / 1.094 GB, free: 0.5703 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.132e-05/0.9695, allocations: 16.78 kB / 1.094 GB, free: 0.5586 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.9695, allocations: 2 kB / 1.094 GB, free: 0.5586 MB / 0.8575 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.0001226/0.9697, allocations: 149 kB / 1.094 GB, free: 436 kB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.159e-05/0.9697, allocations: 24.22 kB / 1.094 GB, free: 420 kB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.154e-05/0.9698, allocations: 17.92 kB / 1.094 GB, free: 412 kB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.271e-05/0.9698, allocations: 3.453 kB / 1.094 GB, free: 412 kB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.9698, allocations: 0.6875 kB / 1.094 GB, free: 412 kB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.9698, allocations: 4.734 kB / 1.094 GB, free: 408 kB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001817/0.97, allocations: 227.2 kB / 1.094 GB, free: 184 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.97, allocations: 0 / 1.094 GB, free: 184 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.199e-05/0.97, allocations: 8.297 kB / 1.094 GB, free: 180 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.97, allocations: 1.703 kB / 1.094 GB, free: 180 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.97, allocations: 9.5 kB / 1.094 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.9701, allocations: 0.7969 kB / 1.094 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.9701, allocations: 0.6875 kB / 1.094 GB, free: 172 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002328/0.9703, allocations: 144.6 kB / 1.095 GB, free: 72 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.557e-05/0.9704, allocations: 94.73 kB / 1.095 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.851e-05/0.9704, allocations: 6.172 kB / 1.095 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.132e-05/0.9705, allocations: 8.812 kB / 1.095 GB, free: 15.96 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.088e-05/0.9705, allocations: 8.344 kB / 1.095 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.9705, allocations: 3.672 kB / 1.095 GB, free: 15.95 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0002375/0.9708, allocations: 195 kB / 1.095 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9708, allocations: 0 / 1.095 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000267/0.9711, allocations: 29 kB / 1.095 GB, free: 15.84 MB / 0.8731 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.001546/0.9726, allocations: 1.006 MB / 1.096 GB, free: 15.1 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.000239/0.9729, allocations: 70.97 kB / 1.096 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.9729, allocations: 0 / 1.096 GB, free: 15.08 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 9.931e-05/0.973, allocations: 41.5 kB / 1.096 GB, free: 15.06 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/0.9733, allocations: 41.19 kB / 1.096 GB, free: 15.05 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002665/0.976, allocations: 1.96 MB / 1.098 GB, free: 13.64 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003724/0.9764, allocations: 0.722 MB / 1.099 GB, free: 12.94 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 9.465e-05/0.9765, allocations: 27.22 kB / 1.099 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.181e-05/0.9766, allocations: 45.48 kB / 1.099 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of SimCode: time 2.1e-07/0.9766, allocations: 0 / 1.099 GB, free: 12.9 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02783/1.004, allocations: 4.549 MB / 1.103 GB, free: 12.11 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.666/8.67, allocations: 12.19 kB / 1.103 GB, free: 12.1 MB / 0.8731 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.BooleanReplicator_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_BooleanReplicator_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_BooleanReplicator.fmu > 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) "" 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