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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.00132/0.00132, allocations: 107.6 kB / 15.99 MB, free: 6.348 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.001301/0.001301, allocations: 188.8 kB / 16.91 MB, free: 6.188 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.424/1.424, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.754/2.754, allocations: 482.4 MB / 0.755 GB, free: 7.16 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 71.92 kB / 0.924 GB, free: 368 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8751/0.877, allocations: 162.2 MB / 1.082 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003202/0.8803, allocations: 1.832 MB / 1.084 GB, free: 364 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001777/0.8821, allocations: 1.082 MB / 1.085 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.233e-05/0.8822, allocations: 0.75 kB / 1.085 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0003349/0.8825, allocations: 56.48 kB / 1.085 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002311/0.8828, allocations: 72.58 kB / 1.085 GB, free: 15.56 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006241/0.8834, allocations: 200.1 kB / 1.086 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002194/0.8837, allocations: 141 kB / 1.086 GB, free: 15.4 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.8838, allocations: 31.56 kB / 1.086 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001268/0.8839, allocations: 61.83 kB / 1.086 GB, free: 15.36 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001155/0.884, allocations: 64.67 kB / 1.086 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.3e-05/0.8841, allocations: 7.656 kB / 1.086 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001685/0.8843, allocations: 71.58 kB / 1.086 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.966e-05/0.8843, allocations: 43.02 kB / 1.086 GB, free: 15.29 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 7.965e-05/0.8844, allocations: 59.7 kB / 1.086 GB, free: 15.25 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.000257/0.8847, allocations: 153.6 kB / 1.086 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/0.8847, allocations: 0 / 1.086 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.463e-06/0.8847, allocations: 1.344 kB / 1.086 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.8847, allocations: 4 kB / 1.086 GB, free: 15.19 MB / 0.8419 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.0007209/0.8855, allocations: 490.5 kB / 1.087 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.8855, allocations: 9.281 kB / 1.087 GB, free: 14.72 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.804e-05/0.8856, allocations: 18.14 kB / 1.087 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003123/0.8859, allocations: 256.7 kB / 1.087 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.8859, allocations: 3.062 kB / 1.087 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.194e-05/0.8859, allocations: 11.61 kB / 1.087 GB, free: 14.46 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002178/0.8862, allocations: 93.06 kB / 1.087 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.8862, allocations: 0.9688 kB / 1.087 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.314e-05/0.8862, allocations: 5.031 kB / 1.087 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.601e-05/0.8862, allocations: 1.344 kB / 1.087 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001093/0.8863, allocations: 35.61 kB / 1.087 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005442/0.8869, allocations: 351.8 kB / 1.087 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002394/0.8871, allocations: 99.97 kB / 1.087 GB, free: 14.01 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.125e-05/0.8872, allocations: 31.56 kB / 1.088 GB, free: 14 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 2.16e-05/0.8873, allocations: 2.188 kB / 1.088 GB, free: 14 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002362/0.8875, allocations: 82.83 kB / 1.088 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.703e-06/0.8875, allocations: 1.344 kB / 1.088 GB, free: 13.93 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.0003802/0.8879, allocations: 141 kB / 1.088 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.78e-05/0.888, allocations: 105.8 kB / 1.088 GB, free: 13.74 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003153/0.8883, allocations: 261.4 kB / 1.088 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.8884, allocations: 31.09 kB / 1.088 GB, free: 13.55 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 9.075e-05/0.8884, allocations: 116.5 kB / 1.088 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.312e-05/0.8885, allocations: 24.84 kB / 1.088 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.445e-05/0.8885, allocations: 25.41 kB / 1.088 GB, free: 13.41 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001656/0.8887, allocations: 338.4 kB / 1.089 GB, free: 13.08 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.577e-05/0.8888, allocations: 27.75 kB / 1.089 GB, free: 13.07 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/0.8889, allocations: 68.84 kB / 1.089 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001607/0.8891, allocations: 70.97 kB / 1.089 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.8891, allocations: 3.938 kB / 1.089 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002397/0.8894, allocations: 120.1 kB / 1.089 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.8894, allocations: 6.609 kB / 1.089 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.8894, allocations: 0 / 1.089 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.8894, allocations: 1.25 kB / 1.089 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.854e-05/0.8895, allocations: 13.52 kB / 1.089 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.745e-06/0.8895, allocations: 2.203 kB / 1.089 GB, free: 12.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.664e-05/0.8896, allocations: 7.344 kB / 1.089 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.518e-06/0.8896, allocations: 2.719 kB / 1.089 GB, free: 12.9 MB / 0.8419 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.0001544/0.8898, allocations: 146 kB / 1.089 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.191e-05/0.8898, allocations: 16.12 kB / 1.089 GB, free: 12.77 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.926e-05/0.8899, allocations: 18.72 kB / 1.089 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.8899, allocations: 1.969 kB / 1.089 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.8899, allocations: 1.188 kB / 1.089 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.8899, allocations: 4.453 kB / 1.089 GB, free: 12.75 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000243/0.8901, allocations: 226.7 kB / 1.089 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.888e-06/0.8902, allocations: 0.9531 kB / 1.089 GB, free: 12.54 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.259e-05/0.8902, allocations: 13.66 kB / 1.089 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.8902, allocations: 1 kB / 1.089 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.8902, allocations: 3.047 kB / 1.089 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.8902, allocations: 4.188 kB / 1.089 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.8903, allocations: 0.75 kB / 1.089 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000263/0.8905, allocations: 147.2 kB / 1.089 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 7.257e-05/0.8906, allocations: 91.06 kB / 1.09 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.097e-05/0.8906, allocations: 3.281 kB / 1.09 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.541e-05/0.8907, allocations: 2.938 kB / 1.09 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.407e-05/0.8908, allocations: 11.23 kB / 1.09 GB, free: 12.32 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.817e-05/0.8908, allocations: 15.62 kB / 1.09 GB, free: 12.3 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002079/0.891, allocations: 197 kB / 1.09 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.891, allocations: 0 / 1.09 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.000279/0.8913, allocations: 35.5 kB / 1.09 GB, free: 12.19 MB / 0.8419 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.001558/0.8929, allocations: 423 kB / 1.09 GB, free: 12 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0002629/0.8931, allocations: 78.95 kB / 1.09 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.8931, allocations: 4.062 kB / 1.09 GB, free: 11.96 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 9.785e-05/0.8933, allocations: 36.98 kB / 1.09 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003111/0.8936, allocations: 42.09 kB / 1.09 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006175/0.8942, allocations: 351.5 kB / 1.091 GB, free: 11.69 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003762/0.8946, allocations: 0.7203 MB / 1.091 GB, free: 10.99 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.549e-05/0.8947, allocations: 24.28 kB / 1.091 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of SimCode: time 2.51e-07/0.8947, allocations: 0 / 1.091 GB, free: 10.98 MB / 0.8419 GB Notification: Performance of Templates: time 0.005565/0.9002, allocations: 2.598 MB / 1.094 GB, free: 10.68 MB / 0.8419 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=400 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches