Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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.IntegerReplicator,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_9_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.008209/0.008209, allocations: 108.4 kB / 15.74 MB, free: 6.449 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.00181/0.00181, allocations: 197 kB / 16.67 MB, free: 6.355 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.4 MB, free: 4.289 MB / 190.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.43/2.43, allocations: 390.2 MB / 0.6648 GB, free: 200 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 71.05 kB / 0.9504 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2826, allocations: 140.4 MB / 1.087 GB, free: 1.973 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.004819/0.2875, allocations: 1.761 MB / 1.089 GB, free: 200 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.002933/0.2904, allocations: 1.117 MB / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002486/0.2907, allocations: 0 / 1.09 GB, free: 15.07 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0005693/0.2914, allocations: 55.73 kB / 1.09 GB, free: 15.02 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000379/0.2918, allocations: 79.66 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008887/0.2927, allocations: 236.5 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002575/0.293, allocations: 139.7 kB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.2931, allocations: 37.06 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000113/0.2933, allocations: 59.72 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001223/0.2934, allocations: 67.75 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.126e-05/0.2934, allocations: 4 kB / 1.091 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001958/0.2936, allocations: 75.94 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.77e-05/0.2937, allocations: 39.78 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.96e-05/0.2938, allocations: 67.59 kB / 1.091 GB, free: 14.23 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003308/0.2942, allocations: 186.3 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/0.2942, allocations: 7.938 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2942, allocations: 4 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.352e-06/0.2942, allocations: 0 / 1.091 GB, free: 14.04 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.000818/0.295, allocations: 497 kB / 1.092 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.615e-05/0.2951, allocations: 12.03 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.664e-05/0.2951, allocations: 34.75 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.177e-05/0.2952, allocations: 16.75 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004251/0.2956, allocations: 252.9 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.049e-05/0.2957, allocations: 4.359 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.8e-05/0.2957, allocations: 7.938 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002488/0.2959, allocations: 96.17 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.317e-05/0.296, allocations: 0 / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.784e-05/0.296, allocations: 0 / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.337e-05/0.296, allocations: 4 kB / 1.092 GB, free: 13.02 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001165/0.2961, allocations: 35.97 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006485/0.2968, allocations: 356.5 kB / 1.093 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002223/0.297, allocations: 90.66 kB / 1.093 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.811e-05/0.2971, allocations: 32.84 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.249e-05/0.2971, allocations: 4 kB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001796/0.2973, allocations: 87.39 kB / 1.093 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.493e-06/0.2973, allocations: 3.938 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0003633/0.2977, allocations: 137.5 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.5e-05/0.2978, allocations: 102.8 kB / 1.093 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002446/0.298, allocations: 262.9 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.385e-05/0.2981, allocations: 29.7 kB / 1.093 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.48e-05/0.2982, allocations: 120.1 kB / 1.093 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.225e-05/0.2982, allocations: 31.62 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.464e-05/0.2982, allocations: 21.72 kB / 1.093 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.2984, allocations: 330.8 kB / 1.094 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.08e-05/0.2985, allocations: 31.92 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.235e-05/0.2986, allocations: 68.22 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001428/0.2987, allocations: 73.69 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2987, allocations: 0 / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002028/0.2989, allocations: 109.7 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.2989, allocations: 6.031 kB / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.299, allocations: 0 / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.299, allocations: 0 / 1.094 GB, free: 10.96 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.58e-05/0.2991, allocations: 19.98 kB / 1.094 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.855e-06/0.2991, allocations: 4.062 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.182e-05/0.2992, allocations: 11.97 kB / 1.094 GB, free: 10.92 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.2992, allocations: 4 kB / 1.094 GB, free: 10.92 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: 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.0001259/0.2993, allocations: 145.8 kB / 1.094 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.672e-05/0.2993, allocations: 15.81 kB / 1.094 GB, free: 10.75 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.529e-05/0.2994, allocations: 21.39 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.075e-06/0.2994, allocations: 0 / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/0.2994, allocations: 4 kB / 1.094 GB, free: 10.73 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.2994, allocations: 3.938 kB / 1.094 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001869/0.2996, allocations: 225.6 kB / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.2996, allocations: 0 / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.206e-05/0.2997, allocations: 8.031 kB / 1.094 GB, free: 10.45 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.387e-06/0.2997, allocations: 3.984 kB / 1.094 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.2997, allocations: 4 kB / 1.094 GB, free: 10.44 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.2997, allocations: 3.938 kB / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2997, allocations: 0 / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002324/0.3, allocations: 144.8 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.197e-05/0.3, allocations: 92.92 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.831e-05/0.3, allocations: 4 kB / 1.095 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.387e-05/0.3001, allocations: 11.97 kB / 1.095 GB, free: 10.15 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.685e-05/0.3002, allocations: 11.94 kB / 1.095 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.3002, allocations: 7.984 kB / 1.095 GB, free: 10.13 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001706/0.3004, allocations: 192.6 kB / 1.095 GB, free: 9.941 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3004, allocations: 0 / 1.095 GB, free: 9.941 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002575/0.3006, allocations: 39.92 kB / 1.095 GB, free: 9.902 MB / 0.8575 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.001414/0.3021, allocations: 0.9888 MB / 1.096 GB, free: 9.043 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000229/0.3023, allocations: 67.95 kB / 1.096 GB, free: 8.977 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3023, allocations: 0 / 1.096 GB, free: 8.977 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 9.534e-05/0.3024, allocations: 35.92 kB / 1.096 GB, free: 8.941 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.3027, allocations: 45.2 kB / 1.096 GB, free: 8.902 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002145/0.3049, allocations: 1.946 MB / 1.098 GB, free: 6.871 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002568/0.3052, allocations: 0.7239 MB / 1.099 GB, free: 6.121 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.402e-05/0.3052, allocations: 29.38 kB / 1.099 GB, free: 6.09 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.991e-05/0.3053, allocations: 47.42 kB / 1.099 GB, free: 6.043 MB / 0.8575 GB Notification: Performance of SimCode: time 2.41e-07/0.3053, allocations: 0 / 1.099 GB, free: 6.043 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02179/0.3271, allocations: 4.739 MB / 1.103 GB, free: 1.375 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.552/7.879, allocations: 16.06 kB / 1.103 GB, free: 1.363 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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