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: 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_9_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_9_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.00107/0.00107, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 194.1 kB / 16.53 MB, free: 6.391 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.345/1.345, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.337/2.337, allocations: 390.2 MB / 0.6646 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001399/0.001399, allocations: 59.91 kB / 0.8125 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7568/0.7582, allocations: 140.4 MB / 0.9496 GB, free: 9.18 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003585/0.7618, allocations: 1.757 MB / 0.9513 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001761/0.7636, allocations: 1.106 MB / 0.9524 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.192e-05/0.7637, allocations: 2.219 kB / 0.9524 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003237/0.764, allocations: 62.45 kB / 0.9524 GB, free: 6.891 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002239/0.7643, allocations: 74.67 kB / 0.9525 GB, free: 6.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005514/0.7649, allocations: 228.9 kB / 0.9527 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001987/0.7651, allocations: 142.7 kB / 0.9529 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001391/0.7652, allocations: 28.19 kB / 0.9529 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.554e-05/0.7653, allocations: 69.42 kB / 0.953 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001085/0.7654, allocations: 62.28 kB / 0.953 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.58e-05/0.7655, allocations: 11.81 kB / 0.953 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001619/0.7656, allocations: 66.06 kB / 0.9531 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 8.638e-05/0.7657, allocations: 39.14 kB / 0.9531 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.041e-05/0.7658, allocations: 63.48 kB / 0.9532 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0003023/0.7661, allocations: 204.2 kB / 0.9534 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.7661, allocations: 0 / 0.9534 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.663e-06/0.7662, allocations: 1.312 kB / 0.9534 GB, free: 6.273 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.207e-06/0.7662, allocations: 0 / 0.9534 GB, free: 6.273 MB / 0.7169 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.0007682/0.7669, allocations: 482.1 kB / 0.9538 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.767, allocations: 10.09 kB / 0.9539 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.982e-05/0.7671, allocations: 19.72 kB / 0.9539 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000299/0.7674, allocations: 252 kB / 0.9541 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.7674, allocations: 6.781 kB / 0.9541 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.08e-05/0.7674, allocations: 14.58 kB / 0.9541 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000229/0.7677, allocations: 92.8 kB / 0.9542 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.7677, allocations: 0 / 0.9542 GB, free: 5.43 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.7677, allocations: 5.438 kB / 0.9542 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.024e-05/0.7677, allocations: 5.469 kB / 0.9542 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001067/0.7678, allocations: 29.67 kB / 0.9543 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000495/0.7684, allocations: 353.5 kB / 0.9546 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002211/0.7686, allocations: 83.94 kB / 0.9547 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.467e-05/0.7687, allocations: 39.58 kB / 0.9547 GB, free: 4.98 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.754e-05/0.7687, allocations: 5.266 kB / 0.9547 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002683/0.769, allocations: 84.28 kB / 0.9548 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.513e-06/0.769, allocations: 0 / 0.9548 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0003756/0.7694, allocations: 139.3 kB / 0.9549 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.162e-05/0.7694, allocations: 108.2 kB / 0.955 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002497/0.7697, allocations: 268.7 kB / 0.9553 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.7697, allocations: 30.83 kB / 0.9553 GB, free: 4.48 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.753e-05/0.7698, allocations: 113 kB / 0.9554 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.135e-05/0.7698, allocations: 26.22 kB / 0.9555 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.477e-05/0.7699, allocations: 23.31 kB / 0.9555 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 8.044e-05/0.77, allocations: 335.8 kB / 0.9558 GB, free: 4 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.371e-05/0.7701, allocations: 33.64 kB / 0.9558 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.414e-05/0.7702, allocations: 69.22 kB / 0.9559 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001426/0.7703, allocations: 69.41 kB / 0.956 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.7703, allocations: 0 / 0.956 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002314/0.7706, allocations: 114.4 kB / 0.9561 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.7706, allocations: 3.844 kB / 0.9561 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.7706, allocations: 0 / 0.9561 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.7706, allocations: 1.5 kB / 0.9561 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.7708, allocations: 18.8 kB / 0.9561 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.138e-06/0.7708, allocations: 0 / 0.9561 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.72e-05/0.7709, allocations: 15.69 kB / 0.9561 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.45e-05/0.7709, allocations: 2.656 kB / 0.9561 GB, free: 3.789 MB / 0.7169 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.0001401/0.771, allocations: 152.4 kB / 0.9563 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.329e-05/0.7711, allocations: 15.81 kB / 0.9563 GB, free: 3.641 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.009e-05/0.7711, allocations: 20.05 kB / 0.9563 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.698e-06/0.7711, allocations: 2.188 kB / 0.9563 GB, free: 3.629 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.7711, allocations: 4 kB / 0.9563 GB, free: 3.625 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.7711, allocations: 5.125 kB / 0.9563 GB, free: 3.621 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001621/0.7713, allocations: 226.4 kB / 0.9565 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.7713, allocations: 0 / 0.9565 GB, free: 3.379 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.961e-05/0.7714, allocations: 9.609 kB / 0.9565 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.7714, allocations: 0 / 0.9565 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.005e-05/0.7714, allocations: 1.375 kB / 0.9565 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.7714, allocations: 1.469 kB / 0.9565 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.7714, allocations: 0 / 0.9565 GB, free: 3.375 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002384/0.7716, allocations: 159 kB / 0.9567 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 4.36e-05/0.7717, allocations: 91.36 kB / 0.9568 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.813e-05/0.7717, allocations: 1.219 kB / 0.9568 GB, free: 3.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.238e-05/0.7718, allocations: 6.734 kB / 0.9568 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.066e-05/0.7718, allocations: 7.219 kB / 0.9568 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.384e-05/0.7719, allocations: 10.77 kB / 0.9568 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001659/0.772, allocations: 191.4 kB / 0.957 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.772, allocations: 1.719 kB / 0.957 GB, free: 3.012 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002503/0.7723, allocations: 32.72 kB / 0.957 GB, free: 3.004 MB / 0.7169 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.001041/0.7733, allocations: 426.1 kB / 0.9574 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002346/0.7736, allocations: 78.06 kB / 0.9575 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.7736, allocations: 0 / 0.9575 GB, free: 2.766 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.714e-05/0.7737, allocations: 33.52 kB / 0.9575 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.774, allocations: 38.84 kB / 0.9576 GB, free: 2.734 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000522/0.7745, allocations: 298.6 kB / 0.9578 GB, free: 2.52 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002032/0.7747, allocations: 0.7223 MB / 0.9585 GB, free: 1.801 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 7.488e-05/0.7748, allocations: 30.78 kB / 0.9586 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.932e-05/0.7749, allocations: 18.44 kB / 0.9586 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of SimCode: time 2.61e-07/0.7749, allocations: 3.938 kB / 0.9586 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of Templates: time 0.006639/0.7815, allocations: 2.528 MB / 0.9611 GB, free: 0.5117 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.makefile (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 & ./Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches