Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Math_Examples_IntegerReplicator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegerReplicator,fileNamePrefix="Buildings_10_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.0055/0.0055, allocations: 104.8 kB / 15.74 MB, free: 5.984 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.001242/0.001243, allocations: 199.1 kB / 16.68 MB, free: 5.91 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.467/2.467, allocations: 437.1 MB / 0.7105 GB, free: 4.387 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 64.31 kB / 1.018 GB, free: 9.91 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8592/0.8607, allocations: 151.6 MB / 1.166 GB, free: 3.922 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003321/0.8641, allocations: 1.772 MB / 1.168 GB, free: 2.137 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001823/0.866, allocations: 1.096 MB / 1.169 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.8661, allocations: 0 / 1.169 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0003186/0.8664, allocations: 63.61 kB / 1.169 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.0002871/0.8668, allocations: 83.66 kB / 1.169 GB, free: 0.8867 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000706/0.8675, allocations: 230.7 kB / 1.169 GB, free: 0.6641 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0002334/0.8677, allocations: 143.6 kB / 1.169 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.8679, allocations: 29.09 kB / 1.169 GB, free: 0.4961 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001303/0.868, allocations: 55.78 kB / 1.17 GB, free: 452 kB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001092/0.8681, allocations: 63.75 kB / 1.17 GB, free: 388 kB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.418e-05/0.8681, allocations: 8 kB / 1.17 GB, free: 380 kB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001787/0.8683, allocations: 71.88 kB / 1.17 GB, free: 308 kB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 8.365e-05/0.8684, allocations: 43.84 kB / 1.17 GB, free: 264 kB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 7.391e-05/0.8685, allocations: 59.66 kB / 1.17 GB, free: 204 kB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002931/0.8688, allocations: 205.6 kB / 1.17 GB, free: 0 / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.8688, allocations: 112 / 1.17 GB, free: 16 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.363e-06/0.8688, allocations: 3.938 kB / 1.17 GB, free: 15.99 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.8688, allocations: 0 / 1.17 GB, free: 15.99 MB / 0.9044 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.0006196/0.8695, allocations: 496.3 kB / 1.17 GB, free: 15.45 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.8695, allocations: 12.92 kB / 1.17 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.322e-05/0.8696, allocations: 30.75 kB / 1.17 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.13e-05/0.8696, allocations: 20.75 kB / 1.171 GB, free: 15.38 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003253/0.87, allocations: 252.9 kB / 1.171 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.87, allocations: 8.375 kB / 1.171 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.726e-05/0.87, allocations: 7.875 kB / 1.171 GB, free: 15.08 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001927/0.8702, allocations: 88.23 kB / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.8702, allocations: 0 / 1.171 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.564e-05/0.8702, allocations: 8 kB / 1.171 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.574e-05/0.8703, allocations: 0 / 1.171 GB, free: 14.97 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001079/0.8704, allocations: 39.91 kB / 1.171 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004706/0.8708, allocations: 348.7 kB / 1.171 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002235/0.8711, allocations: 90.69 kB / 1.171 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.832e-05/0.8712, allocations: 32.84 kB / 1.171 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.8712, allocations: 4 kB / 1.171 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001726/0.8714, allocations: 87.36 kB / 1.171 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=8): time 1.543e-06/0.8714, allocations: 0 / 1.171 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of matching and sorting (n=8): time 0.0003524/0.8718, allocations: 137.5 kB / 1.172 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.8718, allocations: 110.8 kB / 1.172 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002472/0.8721, allocations: 258.9 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.8721, allocations: 33.7 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 7.665e-05/0.8722, allocations: 120 kB / 1.172 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.76e-05/0.8722, allocations: 23.73 kB / 1.172 GB, free: 13.59 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.833e-05/0.8723, allocations: 29.64 kB / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001054/0.8724, allocations: 330.8 kB / 1.172 GB, free: 13.22 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.399e-05/0.8725, allocations: 27.98 kB / 1.172 GB, free: 13.19 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.729e-05/0.8726, allocations: 68.22 kB / 1.173 GB, free: 13.11 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001437/0.8727, allocations: 77.62 kB / 1.173 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.8727, allocations: 0 / 1.173 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002152/0.8729, allocations: 109.5 kB / 1.173 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.271e-05/0.873, allocations: 4 kB / 1.173 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.119e-06/0.873, allocations: 0 / 1.173 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.251e-05/0.873, allocations: 0 / 1.173 GB, free: 12.91 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.4e-05/0.8731, allocations: 19.92 kB / 1.173 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.8731, allocations: 0 / 1.173 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.381e-05/0.8732, allocations: 11.97 kB / 1.173 GB, free: 12.88 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.119e-05/0.8732, allocations: 8 kB / 1.173 GB, free: 12.87 MB / 0.9044 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.0001151/0.8733, allocations: 137.9 kB / 1.173 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.846e-05/0.8734, allocations: 15.81 kB / 1.173 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.706e-05/0.8734, allocations: 21.39 kB / 1.173 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.07e-05/0.8734, allocations: 4 kB / 1.173 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.8734, allocations: 0 / 1.173 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.8734, allocations: 7.938 kB / 1.173 GB, free: 12.67 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001841/0.8736, allocations: 233.4 kB / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.8736, allocations: 0 / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.146e-05/0.8737, allocations: 7.984 kB / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.8737, allocations: 0 / 1.173 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.458e-06/0.8737, allocations: 4 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.8737, allocations: 0 / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.8737, allocations: 3.938 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002495/0.874, allocations: 145.2 kB / 1.173 GB, free: 12.22 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.777e-05/0.874, allocations: 89.02 kB / 1.173 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.678e-05/0.8741, allocations: 4 kB / 1.173 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.618e-05/0.8741, allocations: 3.984 kB / 1.173 GB, free: 12.11 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.404e-05/0.8742, allocations: 15.92 kB / 1.173 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/0.8742, allocations: 4 kB / 1.173 GB, free: 12.09 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001666/0.8744, allocations: 196.4 kB / 1.174 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.71e-07/0.8744, allocations: 0 / 1.174 GB, free: 11.89 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002594/0.8747, allocations: 43.88 kB / 1.174 GB, free: 11.85 MB / 0.9044 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.001381/0.876, allocations: 1.002 MB / 1.175 GB, free: 10.99 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0002184/0.8763, allocations: 63.97 kB / 1.175 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.8763, allocations: 0 / 1.175 GB, free: 10.93 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 9.483e-05/0.8764, allocations: 39.92 kB / 1.175 GB, free: 10.89 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002859/0.8767, allocations: 45.09 kB / 1.175 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002176/0.8789, allocations: 1.943 MB / 1.177 GB, free: 8.82 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.8792, allocations: 0.724 MB / 1.177 GB, free: 8.07 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 8.491e-05/0.8793, allocations: 29.31 kB / 1.177 GB, free: 8.039 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.836e-05/0.8794, allocations: 47.42 kB / 1.177 GB, free: 7.992 MB / 0.9044 GB Notification: Performance of SimCode: time 4.61e-07/0.8794, allocations: 0 / 1.177 GB, free: 7.992 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02259/0.902, allocations: 4.699 MB / 1.182 GB, free: 3.375 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.136/9.038, allocations: 18.17 kB / 1.182 GB, free: 3.359 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Examples_IntegerReplicator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Examples_IntegerReplicator.fmu > Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.IntegerReplicator_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_IntegerReplicator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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