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.007649/0.007649, allocations: 104.8 kB / 15.73 MB, free: 6.035 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.001743/0.001743, allocations: 199.2 kB / 16.67 MB, free: 5.969 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.439/1.439, allocations: 222.9 MB / 240.4 MB, free: 4.191 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.784/2.784, allocations: 461.9 MB / 0.7348 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 71.89 kB / 1.054 GB, free: 7.145 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3465/0.3479, allocations: 157.4 MB / 1.208 GB, free: 9.641 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003873/0.3518, allocations: 1.764 MB / 1.209 GB, free: 7.859 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002719/0.3546, allocations: 1.115 MB / 1.211 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001903/0.3548, allocations: 0 / 1.211 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005503/0.3554, allocations: 59.73 kB / 1.211 GB, free: 6.68 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0004629/0.3559, allocations: 83.66 kB / 1.211 GB, free: 6.598 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001064/0.357, allocations: 222.1 kB / 1.211 GB, free: 6.383 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0004892/0.3575, allocations: 143.7 kB / 1.211 GB, free: 6.242 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001837/0.3577, allocations: 21.11 kB / 1.211 GB, free: 6.223 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002047/0.3579, allocations: 63.7 kB / 1.211 GB, free: 6.16 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001964/0.3581, allocations: 63.75 kB / 1.211 GB, free: 6.098 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.487e-05/0.3581, allocations: 8 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002812/0.3584, allocations: 75.94 kB / 1.211 GB, free: 6.016 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001306/0.3586, allocations: 39.84 kB / 1.211 GB, free: 5.977 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001006/0.3587, allocations: 59.61 kB / 1.211 GB, free: 5.918 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004182/0.3591, allocations: 203.4 kB / 1.212 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.071e-06/0.3591, allocations: 0 / 1.212 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.933e-06/0.3591, allocations: 0 / 1.212 GB, free: 5.719 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.428e-06/0.3591, allocations: 4 kB / 1.212 GB, free: 5.715 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.0009357/0.3601, allocations: 488.2 kB / 1.212 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 6.454e-05/0.3602, allocations: 16.62 kB / 1.212 GB, free: 5.168 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.564e-05/0.3603, allocations: 12.75 kB / 1.212 GB, free: 5.156 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004499/0.3607, allocations: 252.9 kB / 1.212 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.3607, allocations: 4.375 kB / 1.212 GB, free: 4.863 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.493e-05/0.3608, allocations: 8.125 kB / 1.212 GB, free: 4.855 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002489/0.361, allocations: 96.17 kB / 1.212 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.361, allocations: 0 / 1.212 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.62e-05/0.3611, allocations: 4 kB / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.448e-05/0.3611, allocations: 3.984 kB / 1.212 GB, free: 4.738 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001234/0.3612, allocations: 31.98 kB / 1.212 GB, free: 4.707 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006853/0.3619, allocations: 356.7 kB / 1.213 GB, free: 4.309 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000243/0.3622, allocations: 82.61 kB / 1.213 GB, free: 4.219 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.356e-05/0.3623, allocations: 40.84 kB / 1.213 GB, free: 4.176 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.855e-05/0.3623, allocations: 3.984 kB / 1.213 GB, free: 4.172 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000286/0.3626, allocations: 75.38 kB / 1.213 GB, free: 4.086 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 4.068e-06/0.3626, allocations: 3.984 kB / 1.213 GB, free: 4.082 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0005076/0.3631, allocations: 149.3 kB / 1.213 GB, free: 3.93 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.511e-05/0.3632, allocations: 102.8 kB / 1.213 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003572/0.3636, allocations: 268.2 kB / 1.213 GB, free: 3.535 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.3636, allocations: 25.7 kB / 1.213 GB, free: 3.504 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001152/0.3637, allocations: 127.9 kB / 1.214 GB, free: 3.375 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.05e-05/0.3638, allocations: 11.81 kB / 1.214 GB, free: 3.363 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.278e-05/0.3639, allocations: 33.69 kB / 1.214 GB, free: 3.324 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000163/0.364, allocations: 334.8 kB / 1.214 GB, free: 2.988 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.868e-05/0.3641, allocations: 19.98 kB / 1.214 GB, free: 2.969 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001136/0.3642, allocations: 76.2 kB / 1.214 GB, free: 2.879 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001592/0.3644, allocations: 65.7 kB / 1.214 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3644, allocations: 0 / 1.214 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002824/0.3647, allocations: 113.4 kB / 1.214 GB, free: 2.691 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.3647, allocations: 5.875 kB / 1.214 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/0.3648, allocations: 0 / 1.214 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.277e-05/0.3648, allocations: 7.984 kB / 1.214 GB, free: 2.68 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.811e-05/0.3649, allocations: 12.03 kB / 1.214 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.3649, allocations: 4.391 kB / 1.214 GB, free: 2.664 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.53e-05/0.365, allocations: 11.88 kB / 1.214 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.152e-05/0.365, allocations: 7.984 kB / 1.214 GB, free: 2.645 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.0001498/0.3652, allocations: 145.7 kB / 1.214 GB, free: 2.492 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.461e-05/0.3652, allocations: 19.81 kB / 1.214 GB, free: 2.473 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.881e-05/0.3653, allocations: 13.41 kB / 1.214 GB, free: 2.457 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.3653, allocations: 7.984 kB / 1.214 GB, free: 2.449 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.3653, allocations: 4 kB / 1.214 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.3653, allocations: 3.938 kB / 1.214 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002307/0.3655, allocations: 225.5 kB / 1.215 GB, free: 2.172 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.3655, allocations: 0 / 1.215 GB, free: 2.172 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.451e-05/0.3656, allocations: 12 kB / 1.215 GB, free: 2.16 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.3656, allocations: 0 / 1.215 GB, free: 2.16 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.3656, allocations: 0 / 1.215 GB, free: 2.16 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.3656, allocations: 3.984 kB / 1.215 GB, free: 2.156 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.3656, allocations: 3.984 kB / 1.215 GB, free: 2.152 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002919/0.3659, allocations: 140.9 kB / 1.215 GB, free: 1.996 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 6.058e-05/0.366, allocations: 92.91 kB / 1.215 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.896e-05/0.366, allocations: 8 kB / 1.215 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.358e-05/0.3661, allocations: 192 / 1.215 GB, free: 1.879 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.409e-05/0.3662, allocations: 15.86 kB / 1.215 GB, free: 1.863 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.535e-05/0.3662, allocations: 11.88 kB / 1.215 GB, free: 1.852 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.000192/0.3664, allocations: 199.3 kB / 1.215 GB, free: 1.656 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3664, allocations: 0 / 1.215 GB, free: 1.656 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002712/0.3667, allocations: 35.98 kB / 1.215 GB, free: 1.621 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.00111/0.3678, allocations: 424.8 kB / 1.216 GB, free: 1.355 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002561/0.3681, allocations: 67.95 kB / 1.216 GB, free: 1.289 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3681, allocations: 3.938 kB / 1.216 GB, free: 1.285 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.434e-05/0.3682, allocations: 31.98 kB / 1.216 GB, free: 1.254 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003164/0.3685, allocations: 49.09 kB / 1.216 GB, free: 1.211 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006399/0.3691, allocations: 298.3 kB / 1.216 GB, free: 0.8984 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004022/0.3696, allocations: 0.7201 MB / 1.217 GB, free: 156 kB / 0.9669 GB Notification: Performance of simCode: alias equations: time 8.78e-05/0.3697, allocations: 29.36 kB / 1.217 GB, free: 128 kB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.06e-05/0.3697, allocations: 19.44 kB / 1.217 GB, free: 108 kB / 0.9669 GB Notification: Performance of SimCode: time 2.114e-06/0.3697, allocations: 4 kB / 1.217 GB, free: 104 kB / 0.9669 GB Notification: Performance of Templates: time 0.006694/0.3764, allocations: 2.542 MB / 1.219 GB, free: 13.58 MB / 0.9825 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