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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.0009814/0.0009815, allocations: 92.23 kB / 16.02 MB, free: 80 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.001165/0.001165, allocations: 183.8 kB / 16.92 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.407/1.407, allocations: 223.3 MB / 241 MB, free: 5.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.639/2.639, allocations: 462.6 MB / 0.7371 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003385/0.0003384, allocations: 9.719 kB / 0.9034 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2863/0.2866, allocations: 159.6 MB / 1.059 GB, free: 4.945 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002144/0.2888, allocations: 1.48 MB / 1.061 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001838/0.2907, allocations: 1.076 MB / 1.062 GB, free: 2.371 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.796e-05/0.2908, allocations: 3.938 kB / 1.062 GB, free: 2.367 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003313/0.2911, allocations: 51.86 kB / 1.062 GB, free: 2.316 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002415/0.2914, allocations: 67.75 kB / 1.062 GB, free: 2.25 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006662/0.2921, allocations: 206.4 kB / 1.062 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002152/0.2923, allocations: 131.6 kB / 1.062 GB, free: 1.922 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001046/0.2924, allocations: 21.11 kB / 1.062 GB, free: 1.902 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001162/0.2925, allocations: 55.77 kB / 1.062 GB, free: 1.848 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001322/0.2927, allocations: 59.69 kB / 1.062 GB, free: 1.789 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.304e-05/0.2927, allocations: 4 kB / 1.062 GB, free: 1.785 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001658/0.2929, allocations: 51.97 kB / 1.062 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.134e-05/0.293, allocations: 39.83 kB / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.365e-05/0.293, allocations: 81.31 kB / 1.063 GB, free: 1.609 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002286/0.2933, allocations: 151.9 kB / 1.063 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2933, allocations: 0 / 1.063 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.202e-06/0.2933, allocations: 0 / 1.063 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.2933, allocations: 3.938 kB / 1.063 GB, free: 1.457 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.0006491/0.294, allocations: 472.5 kB / 1.063 GB, free: 0.9414 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.294, allocations: 8.031 kB / 1.063 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.51e-05/0.2941, allocations: 20.69 kB / 1.063 GB, free: 0.9141 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003413/0.2944, allocations: 244.9 kB / 1.063 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.051e-05/0.2944, allocations: 4.359 kB / 1.063 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.79e-05/0.2945, allocations: 12.11 kB / 1.063 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002146/0.2947, allocations: 100.2 kB / 1.064 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.2947, allocations: 0 / 1.064 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.2947, allocations: 0 / 1.064 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.063e-05/0.2948, allocations: 4 kB / 1.064 GB, free: 0.5 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000109/0.2949, allocations: 27.98 kB / 1.064 GB, free: 484 kB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006091/0.2955, allocations: 360.5 kB / 1.064 GB, free: 72 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002789/0.2958, allocations: 90.66 kB / 1.064 GB, free: 15.97 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.404e-05/0.2959, allocations: 28.94 kB / 1.064 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.2959, allocations: 11.94 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001967/0.2961, allocations: 79.36 kB / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.663e-06/0.2961, allocations: 0 / 1.064 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.0003465/0.2965, allocations: 141.5 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.463e-05/0.2965, allocations: 106.8 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002507/0.2968, allocations: 259 kB / 1.065 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.2968, allocations: 29.64 kB / 1.065 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.517e-05/0.2969, allocations: 120 kB / 1.065 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.385e-05/0.2969, allocations: 15.8 kB / 1.065 GB, free: 15.13 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.941e-05/0.297, allocations: 17.72 kB / 1.065 GB, free: 15.11 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001076/0.2971, allocations: 334.8 kB / 1.065 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.132e-05/0.2972, allocations: 27.98 kB / 1.065 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.2973, allocations: 68.27 kB / 1.065 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001529/0.2974, allocations: 70 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2975, allocations: 4.125 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002152/0.2977, allocations: 117.5 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.2977, allocations: 13.06 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.2977, allocations: 3.938 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.2977, allocations: 4 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.996e-05/0.2978, allocations: 11.94 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.2978, allocations: 4 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.225e-05/0.2979, allocations: 11.86 kB / 1.065 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.2979, allocations: 8 kB / 1.065 GB, free: 14.41 MB / 0.8262 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.0001273/0.2981, allocations: 144.1 kB / 1.066 GB, free: 14.26 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.852e-05/0.2981, allocations: 23.84 kB / 1.066 GB, free: 14.24 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.163e-05/0.2982, allocations: 17.39 kB / 1.066 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.2982, allocations: 4 kB / 1.066 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2982, allocations: 0 / 1.066 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.2982, allocations: 3.938 kB / 1.066 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001896/0.2984, allocations: 225.5 kB / 1.066 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.2984, allocations: 0 / 1.066 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.93e-05/0.2984, allocations: 8 kB / 1.066 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.2985, allocations: 0 / 1.066 GB, free: 13.94 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.188e-05/0.2985, allocations: 3.984 kB / 1.066 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2985, allocations: 4 kB / 1.066 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2985, allocations: 0 / 1.066 GB, free: 13.93 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002375/0.2987, allocations: 144.8 kB / 1.066 GB, free: 13.77 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 6.998e-05/0.2988, allocations: 96.92 kB / 1.066 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.802e-05/0.2988, allocations: 0 / 1.066 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.31e-05/0.2989, allocations: 7.984 kB / 1.066 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.821e-05/0.299, allocations: 8 kB / 1.066 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.572e-05/0.299, allocations: 7.922 kB / 1.066 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001728/0.2992, allocations: 196.6 kB / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2992, allocations: 0 / 1.066 GB, free: 13.44 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.00026/0.2994, allocations: 35.98 kB / 1.066 GB, free: 13.41 MB / 0.8262 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.001026/0.3005, allocations: 422.9 kB / 1.067 GB, free: 13.14 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002264/0.3007, allocations: 75.89 kB / 1.067 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3007, allocations: 0 / 1.067 GB, free: 13.07 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.99e-05/0.3008, allocations: 40.03 kB / 1.067 GB, free: 13.03 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/0.3011, allocations: 39.91 kB / 1.067 GB, free: 12.99 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005931/0.3018, allocations: 351.7 kB / 1.067 GB, free: 12.61 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003123/0.3021, allocations: 0.7165 MB / 1.068 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.214e-05/0.3021, allocations: 23.42 kB / 1.068 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.3021, allocations: 0 / 1.068 GB, free: 11.85 MB / 0.8262 GB Notification: Performance of Templates: time 0.005041/0.3072, allocations: 2.575 MB / 1.07 GB, free: 9.289 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/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