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.008461/0.008461, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001422/0.001423, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.451/1.451, allocations: 222.9 MB / 240.4 MB, free: 4.176 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.7/2.7, allocations: 390.2 MB / 0.6648 GB, free: 188 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 63.66 kB / 0.9508 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3623/0.3635, allocations: 140.4 MB / 1.088 GB, free: 1.48 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.005108/0.3687, allocations: 1.776 MB / 1.09 GB, free: 15.69 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002741/0.3715, allocations: 1.109 MB / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001618/0.3717, allocations: 0 / 1.091 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0004315/0.3721, allocations: 55.73 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0004523/0.3726, allocations: 83.66 kB / 1.091 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009191/0.3736, allocations: 218.8 kB / 1.091 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003234/0.3739, allocations: 151.6 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001657/0.3741, allocations: 33.03 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000164/0.3742, allocations: 63.75 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001446/0.3744, allocations: 67.69 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.763e-05/0.3744, allocations: 8 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002267/0.3747, allocations: 67.97 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001276/0.3748, allocations: 43.83 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.995e-05/0.3749, allocations: 59.55 kB / 1.092 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004617/0.3754, allocations: 199.4 kB / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.3754, allocations: 0 / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.924e-06/0.3754, allocations: 0 / 1.092 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.949e-06/0.3754, allocations: 0 / 1.092 GB, free: 13.54 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.000962/0.3764, allocations: 496.2 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.612e-05/0.3765, allocations: 8.031 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.863e-05/0.3765, allocations: 20.73 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005025/0.3771, allocations: 252.8 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.3771, allocations: 4.375 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.451e-05/0.3771, allocations: 12.12 kB / 1.092 GB, free: 12.67 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002467/0.3774, allocations: 92.22 kB / 1.093 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.3774, allocations: 3.938 kB / 1.093 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.673e-05/0.3774, allocations: 0 / 1.093 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.263e-05/0.3775, allocations: 4 kB / 1.093 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001158/0.3776, allocations: 31.98 kB / 1.093 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006602/0.3782, allocations: 364.6 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002481/0.3785, allocations: 94.67 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.837e-05/0.3786, allocations: 28.84 kB / 1.093 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.803e-05/0.3786, allocations: 4 kB / 1.093 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002109/0.3788, allocations: 83.38 kB / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=8): time 1.793e-06/0.3789, allocations: 0 / 1.093 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8): time 0.0004286/0.3793, allocations: 133.4 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.621e-05/0.3794, allocations: 114.7 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003349/0.3797, allocations: 259 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.3798, allocations: 25.7 kB / 1.094 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001243/0.3799, allocations: 120.1 kB / 1.094 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.521e-05/0.38, allocations: 23.69 kB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.487e-05/0.38, allocations: 29.72 kB / 1.094 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001459/0.3802, allocations: 338.7 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.097e-05/0.3803, allocations: 23.98 kB / 1.094 GB, free: 10.78 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.842e-05/0.3804, allocations: 68.28 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001472/0.3805, allocations: 77.62 kB / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3805, allocations: 0 / 1.094 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002544/0.3808, allocations: 109.4 kB / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.904e-05/0.3808, allocations: 8 kB / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3808, allocations: 0 / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.3809, allocations: 0 / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.381, allocations: 15.98 kB / 1.094 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.174e-06/0.381, allocations: 0 / 1.094 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.06e-05/0.3811, allocations: 11.88 kB / 1.094 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/0.3811, allocations: 4 kB / 1.094 GB, free: 10.46 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.0001668/0.3813, allocations: 145.8 kB / 1.095 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.828e-05/0.3813, allocations: 15.81 kB / 1.095 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.437e-05/0.3814, allocations: 21.39 kB / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.958e-06/0.3814, allocations: 0 / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.891e-06/0.3814, allocations: 0 / 1.095 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.3814, allocations: 3.938 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002322/0.3817, allocations: 221.6 kB / 1.095 GB, free: 10.01 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3817, allocations: 3.938 kB / 1.095 GB, free: 10 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.699e-05/0.3817, allocations: 7.984 kB / 1.095 GB, free: 9.996 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.3817, allocations: 4 kB / 1.095 GB, free: 9.992 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.392e-05/0.3817, allocations: 4 kB / 1.095 GB, free: 9.988 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.3818, allocations: 0 / 1.095 GB, free: 9.988 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.3818, allocations: 4 kB / 1.095 GB, free: 9.984 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002673/0.382, allocations: 144.8 kB / 1.095 GB, free: 9.824 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.155e-05/0.3821, allocations: 96.92 kB / 1.095 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.322e-05/0.3822, allocations: 0 / 1.095 GB, free: 9.711 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.945e-05/0.3822, allocations: 11.98 kB / 1.095 GB, free: 9.699 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.96e-05/0.3823, allocations: 12.03 kB / 1.095 GB, free: 9.688 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.3823, allocations: 11.92 kB / 1.095 GB, free: 9.676 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001977/0.3825, allocations: 188.6 kB / 1.095 GB, free: 9.492 MB / 0.8575 GB Notification: Performance of sort global known variables: time 6.51e-07/0.3825, allocations: 0 / 1.095 GB, free: 9.492 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002842/0.3828, allocations: 39.94 kB / 1.095 GB, free: 9.453 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.00115/0.384, allocations: 424.5 kB / 1.096 GB, free: 9.191 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002801/0.3843, allocations: 79.94 kB / 1.096 GB, free: 9.113 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3843, allocations: 0 / 1.096 GB, free: 9.113 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.3844, allocations: 39.92 kB / 1.096 GB, free: 9.074 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003258/0.3847, allocations: 36.78 kB / 1.096 GB, free: 9.043 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006191/0.3854, allocations: 290.9 kB / 1.096 GB, free: 8.73 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.3857, allocations: 0.724 MB / 1.097 GB, free: 7.98 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 8.813e-05/0.3858, allocations: 21.39 kB / 1.097 GB, free: 7.961 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.952e-05/0.3858, allocations: 23.36 kB / 1.097 GB, free: 7.938 MB / 0.8575 GB Notification: Performance of SimCode: time 3.2e-07/0.3858, allocations: 0 / 1.097 GB, free: 7.938 MB / 0.8575 GB Notification: Performance of Templates: time 0.006584/0.3924, allocations: 2.549 MB / 1.099 GB, free: 5.41 MB / 0.8575 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