Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.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.IntegerReplicator,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator",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.009712/0.009712, allocations: 100.2 kB / 15.73 MB, free: 6.027 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.001539/0.001539, allocations: 187.2 kB / 16.67 MB, free: 5.965 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.467/1.467, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.966/2.966, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 68.12 kB / 1.054 GB, free: 7.684 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3137/0.3151, allocations: 157.4 MB / 1.207 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003512/0.3186, allocations: 1.77 MB / 1.209 GB, free: 8.398 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00193/0.3206, allocations: 1.107 MB / 1.21 GB, free: 7.285 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001215/0.3207, allocations: 8 kB / 1.21 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0003325/0.3211, allocations: 55.73 kB / 1.21 GB, free: 7.223 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002976/0.3214, allocations: 79.66 kB / 1.21 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007027/0.3221, allocations: 221.9 kB / 1.21 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002359/0.3224, allocations: 139.7 kB / 1.211 GB, free: 6.793 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001405/0.3225, allocations: 29.11 kB / 1.211 GB, free: 6.766 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001303/0.3227, allocations: 59.77 kB / 1.211 GB, free: 6.707 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.3228, allocations: 67.69 kB / 1.211 GB, free: 6.641 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.333e-05/0.3228, allocations: 8 kB / 1.211 GB, free: 6.633 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001846/0.323, allocations: 67.95 kB / 1.211 GB, free: 6.566 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 8.83e-05/0.3231, allocations: 43.84 kB / 1.211 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 8.53e-05/0.3232, allocations: 63.53 kB / 1.211 GB, free: 6.461 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003387/0.3236, allocations: 199.7 kB / 1.211 GB, free: 6.266 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3236, allocations: 4 kB / 1.211 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3236, allocations: 0 / 1.211 GB, free: 6.262 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.303e-06/0.3236, allocations: 0 / 1.211 GB, free: 6.262 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007321/0.3243, allocations: 492.2 kB / 1.212 GB, free: 5.727 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.3244, allocations: 8.625 kB / 1.212 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.178e-05/0.3244, allocations: 34.75 kB / 1.212 GB, free: 5.676 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.352e-05/0.3245, allocations: 16.75 kB / 1.212 GB, free: 5.66 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003828/0.3249, allocations: 248.9 kB / 1.212 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.3249, allocations: 12.38 kB / 1.212 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.809e-05/0.325, allocations: 11.94 kB / 1.212 GB, free: 5.352 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002259/0.3252, allocations: 96.11 kB / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.955e-06/0.3252, allocations: 0 / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.295e-05/0.3252, allocations: 0 / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.826e-05/0.3252, allocations: 0 / 1.212 GB, free: 5.242 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001148/0.3254, allocations: 39.97 kB / 1.212 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005461/0.3259, allocations: 360.7 kB / 1.212 GB, free: 4.801 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002258/0.3262, allocations: 86.59 kB / 1.212 GB, free: 4.707 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.721e-05/0.3262, allocations: 32.84 kB / 1.212 GB, free: 4.672 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.372e-05/0.3263, allocations: 3.984 kB / 1.212 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000196/0.3265, allocations: 87.38 kB / 1.213 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.453e-06/0.3265, allocations: 0 / 1.213 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0003723/0.3269, allocations: 137.4 kB / 1.213 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.863e-05/0.3269, allocations: 102.8 kB / 1.213 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002628/0.3272, allocations: 268.1 kB / 1.213 GB, free: 4.035 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.3272, allocations: 29.7 kB / 1.213 GB, free: 4 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.3273, allocations: 124 kB / 1.213 GB, free: 3.875 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.939e-05/0.3274, allocations: 19.8 kB / 1.213 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.108e-05/0.3274, allocations: 29.7 kB / 1.213 GB, free: 3.82 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.3276, allocations: 330.8 kB / 1.214 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.657e-05/0.3277, allocations: 23.98 kB / 1.214 GB, free: 3.465 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.3278, allocations: 72.2 kB / 1.214 GB, free: 3.379 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001436/0.3279, allocations: 65.7 kB / 1.214 GB, free: 3.309 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3279, allocations: 4 kB / 1.214 GB, free: 3.305 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002315/0.3282, allocations: 113.4 kB / 1.214 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.3282, allocations: 6.031 kB / 1.214 GB, free: 3.184 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.3282, allocations: 4 kB / 1.214 GB, free: 3.18 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.328e-05/0.3282, allocations: 0 / 1.214 GB, free: 3.18 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.582e-05/0.3283, allocations: 11.98 kB / 1.214 GB, free: 3.168 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.3283, allocations: 4.391 kB / 1.214 GB, free: 3.164 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.242e-05/0.3284, allocations: 11.88 kB / 1.214 GB, free: 3.152 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.3284, allocations: 192 / 1.214 GB, free: 3.152 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: 8 ($PRE.intTab.combiTimeTable.nextTimeEvent,$whenCondition1,intRep.y[2],intRep.y[1],intTab.combiTimeTable.nextTimeEventScaled,$PRE.intTab.combiTimeTable.nextTimeEventScaled,intTab.combiTimeTable.nextTimeEvent,intTab.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.0001328/0.3286, allocations: 157.7 kB / 1.214 GB, free: 2.988 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.067e-05/0.3286, allocations: 19.75 kB / 1.214 GB, free: 2.969 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.556e-05/0.3287, allocations: 13.41 kB / 1.214 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.068e-05/0.3287, allocations: 4 kB / 1.214 GB, free: 2.949 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3287, allocations: 0 / 1.214 GB, free: 2.949 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.3287, allocations: 7.922 kB / 1.214 GB, free: 2.941 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001986/0.3289, allocations: 225.5 kB / 1.214 GB, free: 2.672 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.3289, allocations: 0 / 1.214 GB, free: 2.672 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.338e-05/0.329, allocations: 12 kB / 1.214 GB, free: 2.66 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.329, allocations: 4 kB / 1.214 GB, free: 2.656 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.329, allocations: 0 / 1.214 GB, free: 2.656 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.329, allocations: 0 / 1.214 GB, free: 2.656 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.329, allocations: 3.984 kB / 1.214 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002555/0.3293, allocations: 148.8 kB / 1.214 GB, free: 2.488 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.131e-05/0.3293, allocations: 100.8 kB / 1.214 GB, free: 2.371 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.915e-05/0.3294, allocations: 0 / 1.214 GB, free: 2.371 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.782e-05/0.3294, allocations: 4 kB / 1.214 GB, free: 2.367 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.342e-05/0.3295, allocations: 19.86 kB / 1.215 GB, free: 2.348 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.3295, allocations: 4 kB / 1.215 GB, free: 2.344 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0002011/0.3297, allocations: 195.3 kB / 1.215 GB, free: 2.152 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3297, allocations: 0 / 1.215 GB, free: 2.152 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002701/0.33, allocations: 35.98 kB / 1.215 GB, free: 2.117 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: 6 ($whenCondition1,intTab.y,intTab.combiTimeTable.nextTimeEvent,intTab.combiTimeTable.nextTimeEventScaled,intRep.y[1],intRep.y[2]) * Number of discrete states: 2 (intTab.combiTimeTable.nextTimeEventScaled,intTab.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.3316, allocations: 0.9937 MB / 1.216 GB, free: 1.254 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002523/0.3318, allocations: 67.91 kB / 1.216 GB, free: 1.188 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.3318, allocations: 0 / 1.216 GB, free: 1.188 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.509e-05/0.3319, allocations: 35.98 kB / 1.216 GB, free: 1.152 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003266/0.3323, allocations: 48.27 kB / 1.216 GB, free: 1.109 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002426/0.3347, allocations: 1.96 MB / 1.218 GB, free: 15.07 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.335, allocations: 0.724 MB / 1.218 GB, free: 14.32 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.147e-05/0.3351, allocations: 29.36 kB / 1.219 GB, free: 14.29 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.949e-05/0.3352, allocations: 47.42 kB / 1.219 GB, free: 14.24 MB / 0.9825 GB Notification: Performance of SimCode: time 4.21e-07/0.3352, allocations: 0 / 1.219 GB, free: 14.24 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0262/0.3614, allocations: 4.736 MB / 1.223 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.835/8.197, allocations: 7 kB / 1.223 GB, free: 9.629 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,intRep.u,intRep.y[2],intRep.y[1] Variables in the result:intRep.nout,intRep.u,intRep.y[1],intRep.y[2],intTab.combiTimeTable.columns[1],intTab.combiTimeTable.extrapolation,intTab.combiTimeTable.nout,intTab.combiTimeTable.offset[1],intTab.combiTimeTable.shiftTime,intTab.combiTimeTable.smoothness,intTab.combiTimeTable.startTime,intTab.combiTimeTable.t_max,intTab.combiTimeTable.t_maxScaled,intTab.combiTimeTable.t_min,intTab.combiTimeTable.t_minScaled,intTab.combiTimeTable.tableOnFile,intTab.combiTimeTable.table[1,1],intTab.combiTimeTable.table[1,2],intTab.combiTimeTable.table[2,1],intTab.combiTimeTable.table[2,2],intTab.combiTimeTable.table[3,1],intTab.combiTimeTable.table[3,2],intTab.combiTimeTable.table[4,1],intTab.combiTimeTable.table[4,2],intTab.combiTimeTable.timeEvents,intTab.combiTimeTable.timeScale,intTab.combiTimeTable.verboseExtrapolation,intTab.combiTimeTable.verboseRead,intTab.combiTimeTable.y[1],intTab.extrapolation,intTab.realToInteger.u,intTab.realToInteger.y,intTab.shiftTime,intTab.startTime,intTab.table[1,1],intTab.table[1,2],intTab.table[2,1],intTab.table[2,2],intTab.table[3,1],intTab.table[3,2],intTab.table[4,1],intTab.table[4,2],intTab.y,time