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.001438/0.001438, allocations: 100.1 kB / 15.88 MB, free: 12 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.001496/0.001496, allocations: 199.3 kB / 16.79 MB, free: 6.809 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.387/1.387, allocations: 222.9 MB / 240.5 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.655/2.655, allocations: 461.8 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 67.89 kB / 0.899 GB, free: 37.05 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2925, allocations: 157.4 MB / 1.053 GB, free: 8.328 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.003654/0.2962, allocations: 1.827 MB / 1.055 GB, free: 6.484 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001744/0.298, allocations: 1.111 MB / 1.056 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.656e-05/0.2981, allocations: 0 / 1.056 GB, free: 5.367 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003027/0.2984, allocations: 51.81 kB / 1.056 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002366/0.2987, allocations: 67.8 kB / 1.056 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006123/0.2993, allocations: 205.3 kB / 1.056 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002176/0.2996, allocations: 135.6 kB / 1.056 GB, free: 4.922 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.2997, allocations: 25.12 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001103/0.2998, allocations: 59.69 kB / 1.056 GB, free: 4.84 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.2999, allocations: 63.77 kB / 1.056 GB, free: 4.777 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.322e-05/0.2999, allocations: 3.984 kB / 1.056 GB, free: 4.773 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001597/0.3001, allocations: 55.97 kB / 1.056 GB, free: 4.719 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.816e-05/0.3002, allocations: 39.78 kB / 1.056 GB, free: 4.68 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.569e-05/0.3003, allocations: 55.61 kB / 1.056 GB, free: 4.625 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000223/0.3005, allocations: 148 kB / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.3005, allocations: 0 / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.11e-07/0.3005, allocations: 0 / 1.056 GB, free: 4.48 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.179e-06/0.3005, allocations: 0 / 1.056 GB, free: 4.48 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.0006758/0.3012, allocations: 492.3 kB / 1.057 GB, free: 3.945 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.3013, allocations: 12.03 kB / 1.057 GB, free: 3.934 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.347e-05/0.3013, allocations: 20.69 kB / 1.057 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003124/0.3016, allocations: 256.8 kB / 1.057 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/0.3017, allocations: 384 / 1.057 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.008e-05/0.3017, allocations: 12.12 kB / 1.057 GB, free: 3.613 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002124/0.3019, allocations: 88.23 kB / 1.057 GB, free: 3.512 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.3019, allocations: 7.875 kB / 1.057 GB, free: 3.504 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.326e-05/0.302, allocations: 4 kB / 1.057 GB, free: 3.5 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.791e-05/0.302, allocations: 4 kB / 1.057 GB, free: 3.496 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001106/0.3021, allocations: 35.97 kB / 1.057 GB, free: 3.461 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000537/0.3026, allocations: 352.7 kB / 1.058 GB, free: 3.066 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002376/0.3029, allocations: 94.69 kB / 1.058 GB, free: 2.965 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.619e-05/0.303, allocations: 36.84 kB / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.176e-05/0.303, allocations: 0 / 1.058 GB, free: 2.926 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002578/0.3033, allocations: 83.28 kB / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.643e-06/0.3033, allocations: 0 / 1.058 GB, free: 2.832 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0003753/0.3037, allocations: 145.4 kB / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.153e-05/0.3037, allocations: 102.8 kB / 1.058 GB, free: 2.559 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002477/0.304, allocations: 263 kB / 1.058 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.978e-05/0.304, allocations: 29.7 kB / 1.058 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 8.441e-05/0.3041, allocations: 120.1 kB / 1.059 GB, free: 2.137 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.675e-05/0.3041, allocations: 15.81 kB / 1.059 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.672e-05/0.3042, allocations: 25.7 kB / 1.059 GB, free: 2.09 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001112/0.3043, allocations: 330.8 kB / 1.059 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.4e-05/0.3044, allocations: 23.98 kB / 1.059 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000108/0.3045, allocations: 80.27 kB / 1.059 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001434/0.3047, allocations: 69.64 kB / 1.059 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3047, allocations: 0 / 1.059 GB, free: 1.566 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002317/0.3049, allocations: 113.3 kB / 1.059 GB, free: 1.449 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.3049, allocations: 8 kB / 1.059 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.042e-06/0.305, allocations: 3.938 kB / 1.059 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.299e-05/0.305, allocations: 4.031 kB / 1.059 GB, free: 1.434 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001014/0.3051, allocations: 19.98 kB / 1.059 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.3051, allocations: 0 / 1.059 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.04e-05/0.3052, allocations: 11.88 kB / 1.059 GB, free: 1.402 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.3052, allocations: 4 kB / 1.059 GB, free: 1.398 MB / 0.8106 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.0001363/0.3053, allocations: 149.8 kB / 1.059 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.084e-05/0.3054, allocations: 15.81 kB / 1.059 GB, free: 1.227 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.2e-05/0.3054, allocations: 17.41 kB / 1.059 GB, free: 1.211 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.357e-06/0.3054, allocations: 4 kB / 1.059 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3054, allocations: 0 / 1.059 GB, free: 1.207 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.3054, allocations: 12.11 kB / 1.059 GB, free: 1.195 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002092/0.3057, allocations: 221.5 kB / 1.06 GB, free: 0.9297 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3057, allocations: 3.938 kB / 1.06 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.382e-05/0.3057, allocations: 4 kB / 1.06 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.3057, allocations: 0 / 1.06 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.3058, allocations: 4 kB / 1.06 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.3058, allocations: 0 / 1.06 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.3058, allocations: 0 / 1.06 GB, free: 0.918 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002519/0.306, allocations: 145.2 kB / 1.06 GB, free: 0.7578 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 5.403e-05/0.3061, allocations: 100.9 kB / 1.06 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.867e-05/0.3061, allocations: 0 / 1.06 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.693e-05/0.3062, allocations: 4 kB / 1.06 GB, free: 0.6367 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.623e-05/0.3062, allocations: 7.984 kB / 1.06 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-05/0.3063, allocations: 11.94 kB / 1.06 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0001746/0.3064, allocations: 192.6 kB / 1.06 GB, free: 440 kB / 0.8106 GB Notification: Performance of sort global known variables: time 2.445e-06/0.3064, allocations: 4 kB / 1.06 GB, free: 436 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002702/0.3067, allocations: 31.94 kB / 1.06 GB, free: 404 kB / 0.8106 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.00102/0.3077, allocations: 434.5 kB / 1.061 GB, free: 124 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002348/0.308, allocations: 63.97 kB / 1.061 GB, free: 60 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.308, allocations: 0 / 1.061 GB, free: 60 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.964e-05/0.3081, allocations: 35.92 kB / 1.061 GB, free: 24 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003153/0.3084, allocations: 45.36 kB / 1.061 GB, free: 15.98 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005736/0.309, allocations: 358.3 kB / 1.061 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.3093, allocations: 0.7204 MB / 1.062 GB, free: 14.85 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.991e-05/0.3094, allocations: 19.42 kB / 1.062 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of SimCode: time 4.31e-07/0.3094, allocations: 3.938 kB / 1.062 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of Templates: time 0.004759/0.3142, allocations: 2.595 MB / 1.064 GB, free: 12.25 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