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: translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator") translateModel(Buildings.Utilities.Math.Examples.IntegerReplicator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|intRep.u|intRep.y.2.|intRep.y.1.",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001805/0.001804, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002134/0.002134, allocations: 192.9 kB / 16.14 MB, free: 6.652 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.512/1.512, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.777/2.777, allocations: 461.8 MB / 0.7342 GB, free: 15.06 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 71.83 kB / 0.8984 GB, free: 37.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3449/0.3462, allocations: 157.4 MB / 1.052 GB, free: 8.891 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003669/0.3499, allocations: 1.843 MB / 1.054 GB, free: 7.031 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002128/0.3521, allocations: 1.103 MB / 1.055 GB, free: 5.922 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.788e-05/0.3522, allocations: 3.938 kB / 1.055 GB, free: 5.918 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003723/0.3525, allocations: 51.81 kB / 1.055 GB, free: 5.867 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002071/0.3528, allocations: 67.8 kB / 1.055 GB, free: 5.801 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006382/0.3534, allocations: 199 kB / 1.055 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002678/0.3537, allocations: 135.6 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.3538, allocations: 17.12 kB / 1.055 GB, free: 5.461 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001041/0.3539, allocations: 59.75 kB / 1.055 GB, free: 5.402 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001104/0.354, allocations: 63.69 kB / 1.056 GB, free: 5.34 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.565e-05/0.3541, allocations: 4 kB / 1.056 GB, free: 5.336 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001789/0.3543, allocations: 51.97 kB / 1.056 GB, free: 5.285 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.66e-05/0.3544, allocations: 47.83 kB / 1.056 GB, free: 5.238 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.191e-05/0.3544, allocations: 59.55 kB / 1.056 GB, free: 5.18 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003783/0.3548, allocations: 183.7 kB / 1.056 GB, free: 5 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.3548, allocations: 0 / 1.056 GB, free: 5 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.243e-06/0.3549, allocations: 4 kB / 1.056 GB, free: 4.996 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.831e-06/0.3549, allocations: 0 / 1.056 GB, free: 4.996 MB / 0.8106 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.000743/0.3556, allocations: 493.7 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.3557, allocations: 16.02 kB / 1.056 GB, free: 4.445 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.151e-05/0.3557, allocations: 12.75 kB / 1.056 GB, free: 4.434 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003242/0.3561, allocations: 252.9 kB / 1.057 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.3561, allocations: 4.375 kB / 1.057 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.047e-05/0.3561, allocations: 8.125 kB / 1.057 GB, free: 4.137 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002272/0.3564, allocations: 88.23 kB / 1.057 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.678e-06/0.3564, allocations: 7.984 kB / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.3564, allocations: 0 / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.952e-05/0.3564, allocations: 0 / 1.057 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001223/0.3565, allocations: 35.92 kB / 1.057 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006257/0.3572, allocations: 364.7 kB / 1.057 GB, free: 3.586 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002358/0.3574, allocations: 90.69 kB / 1.057 GB, free: 3.488 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.627e-05/0.3575, allocations: 36.78 kB / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.3575, allocations: 0 / 1.057 GB, free: 3.449 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003576/0.3579, allocations: 87.28 kB / 1.057 GB, free: 3.352 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.523e-06/0.3579, allocations: 4 kB / 1.057 GB, free: 3.348 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0003852/0.3583, allocations: 137.4 kB / 1.057 GB, free: 3.207 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/0.3584, allocations: 102.8 kB / 1.058 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000404/0.3589, allocations: 267 kB / 1.058 GB, free: 2.812 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.3589, allocations: 25.7 kB / 1.058 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001939/0.3591, allocations: 124.1 kB / 1.058 GB, free: 2.656 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.688e-05/0.3591, allocations: 15.8 kB / 1.058 GB, free: 2.641 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.944e-05/0.3592, allocations: 29.7 kB / 1.058 GB, free: 2.605 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001319/0.3593, allocations: 334.8 kB / 1.058 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.3595, allocations: 23.98 kB / 1.058 GB, free: 2.246 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001029/0.3596, allocations: 64.27 kB / 1.058 GB, free: 2.168 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001469/0.3597, allocations: 77.94 kB / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.3597, allocations: 0 / 1.058 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0004076/0.3602, allocations: 113.4 kB / 1.059 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.3602, allocations: 11.92 kB / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.3602, allocations: 0 / 1.059 GB, free: 1.957 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.212e-05/0.3602, allocations: 4 kB / 1.059 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.811e-05/0.3603, allocations: 8 kB / 1.059 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/0.3603, allocations: 4 kB / 1.059 GB, free: 1.941 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.175e-05/0.3604, allocations: 19.89 kB / 1.059 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.088e-05/0.3604, allocations: 7.984 kB / 1.059 GB, free: 1.914 MB / 0.8106 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.0001753/0.3606, allocations: 142.5 kB / 1.059 GB, free: 1.766 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.088e-05/0.3606, allocations: 15.81 kB / 1.059 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.502e-05/0.3607, allocations: 17.39 kB / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.3607, allocations: 4 kB / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3607, allocations: 0 / 1.059 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.3607, allocations: 3.938 kB / 1.059 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002079/0.3609, allocations: 221.6 kB / 1.059 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3609, allocations: 0 / 1.059 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.319e-05/0.361, allocations: 11.94 kB / 1.059 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.361, allocations: 0 / 1.059 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.361, allocations: 3.984 kB / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.361, allocations: 0 / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.361, allocations: 192 / 1.059 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002705/0.3613, allocations: 140.8 kB / 1.059 GB, free: 1.289 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.426e-05/0.3614, allocations: 100.8 kB / 1.059 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.3614, allocations: 8 kB / 1.059 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.582e-05/0.3615, allocations: 4 kB / 1.059 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.328e-05/0.3615, allocations: 7.984 kB / 1.059 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.426e-05/0.3616, allocations: 7.938 kB / 1.059 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.00018/0.3617, allocations: 196.6 kB / 1.059 GB, free: 0.9531 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3617, allocations: 3.938 kB / 1.059 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002613/0.362, allocations: 32 kB / 1.059 GB, free: 0.918 MB / 0.8106 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.001038/0.3631, allocations: 430.9 kB / 1.06 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002832/0.3633, allocations: 63.97 kB / 1.06 GB, free: 0.582 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.3634, allocations: 3.938 kB / 1.06 GB, free: 0.5781 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.605e-05/0.3635, allocations: 39.91 kB / 1.06 GB, free: 0.5391 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003036/0.3638, allocations: 31.97 kB / 1.06 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005679/0.3644, allocations: 334 kB / 1.06 GB, free: 156 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/0.3647, allocations: 0.7243 MB / 1.061 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.239e-05/0.3648, allocations: 25.38 kB / 1.061 GB, free: 15.38 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.673e-05/0.3649, allocations: 19.42 kB / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.3649, allocations: 0 / 1.061 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of Templates: time 0.00584/0.3707, allocations: 2.432 MB / 1.063 GB, free: 12.96 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches