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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.0009694/0.0009694, allocations: 92.23 kB / 15.36 MB, free: 0.7383 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.008221/0.008221, allocations: 169.5 kB / 16.26 MB, free: 6.613 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.417/1.417, allocations: 223.2 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.87/2.87, allocations: 462.7 MB / 0.7364 GB, free: 340 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.000412/0.0004123, allocations: 8.688 kB / 0.9028 GB, free: 36.64 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3094/0.3098, allocations: 159.6 MB / 1.059 GB, free: 5.523 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002386/0.3122, allocations: 1.5 MB / 1.06 GB, free: 4.012 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001877/0.3141, allocations: 1.068 MB / 1.061 GB, free: 2.938 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.3143, allocations: 7.938 kB / 1.061 GB, free: 2.93 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003253/0.3146, allocations: 51.81 kB / 1.061 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002376/0.3148, allocations: 63.8 kB / 1.061 GB, free: 2.816 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00065/0.3155, allocations: 201.5 kB / 1.061 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002155/0.3157, allocations: 135.6 kB / 1.062 GB, free: 2.492 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.3159, allocations: 25.11 kB / 1.062 GB, free: 2.469 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.316, allocations: 51.77 kB / 1.062 GB, free: 2.418 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001148/0.3161, allocations: 63.69 kB / 1.062 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.164e-05/0.3161, allocations: 0 / 1.062 GB, free: 2.355 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000173/0.3163, allocations: 59.89 kB / 1.062 GB, free: 2.297 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.523e-05/0.3164, allocations: 39.84 kB / 1.062 GB, free: 2.258 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.433e-05/0.3165, allocations: 81.25 kB / 1.062 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002898/0.3168, allocations: 187.7 kB / 1.062 GB, free: 1.988 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3168, allocations: 4 kB / 1.062 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3168, allocations: 0 / 1.062 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.442e-06/0.3168, allocations: 0 / 1.062 GB, free: 1.984 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.0006826/0.3175, allocations: 468.5 kB / 1.063 GB, free: 1.473 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.3176, allocations: 12.03 kB / 1.063 GB, free: 1.461 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.001e-05/0.3176, allocations: 16.73 kB / 1.063 GB, free: 1.445 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003082/0.318, allocations: 244.9 kB / 1.063 GB, free: 1.164 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.08e-05/0.318, allocations: 4.375 kB / 1.063 GB, free: 1.16 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.101e-05/0.318, allocations: 20.11 kB / 1.063 GB, free: 1.141 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000216/0.3182, allocations: 84.23 kB / 1.063 GB, free: 1.043 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.3183, allocations: 4 kB / 1.063 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/0.3183, allocations: 0 / 1.063 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.954e-05/0.3183, allocations: 3.984 kB / 1.063 GB, free: 1.035 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001128/0.3184, allocations: 39.92 kB / 1.063 GB, free: 0.9961 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005524/0.319, allocations: 356.6 kB / 1.063 GB, free: 0.5977 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000223/0.3192, allocations: 86.7 kB / 1.063 GB, free: 0.5039 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.717e-05/0.3193, allocations: 32.84 kB / 1.063 GB, free: 480 kB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.3193, allocations: 3.984 kB / 1.063 GB, free: 476 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002236/0.3196, allocations: 83.39 kB / 1.063 GB, free: 380 kB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.573e-06/0.3196, allocations: 0 / 1.063 GB, free: 380 kB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0003877/0.32, allocations: 149.4 kB / 1.064 GB, free: 224 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.861e-05/0.3201, allocations: 102.8 kB / 1.064 GB, free: 96 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002932/0.3204, allocations: 267 kB / 1.064 GB, free: 15.82 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.941e-05/0.3204, allocations: 25.7 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.871e-05/0.3205, allocations: 124 kB / 1.064 GB, free: 15.67 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.676e-05/0.3205, allocations: 15.81 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.122e-05/0.3206, allocations: 21.7 kB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001175/0.3207, allocations: 330.8 kB / 1.064 GB, free: 15.29 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.528e-05/0.3208, allocations: 27.98 kB / 1.065 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.3209, allocations: 68.22 kB / 1.065 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001495/0.321, allocations: 77.61 kB / 1.065 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.321, allocations: 4 kB / 1.065 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002338/0.3213, allocations: 109.5 kB / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.714e-05/0.3213, allocations: 4 kB / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.3213, allocations: 3.938 kB / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.3213, allocations: 0 / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.844e-05/0.3214, allocations: 15.98 kB / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.3215, allocations: 0 / 1.065 GB, free: 14.96 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.352e-05/0.3215, allocations: 11.88 kB / 1.065 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.669e-06/0.3216, allocations: 4 kB / 1.065 GB, free: 14.95 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.0001303/0.3217, allocations: 142.6 kB / 1.065 GB, free: 14.8 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.803e-05/0.3217, allocations: 15.81 kB / 1.065 GB, free: 14.78 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.259e-05/0.3218, allocations: 21.39 kB / 1.065 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-05/0.3218, allocations: 4 kB / 1.065 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.3218, allocations: 0 / 1.065 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.3218, allocations: 7.969 kB / 1.065 GB, free: 14.75 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000207/0.322, allocations: 225.5 kB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.3221, allocations: 0 / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.463e-05/0.3221, allocations: 11.92 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.3221, allocations: 4 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.3221, allocations: 4 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3221, allocations: 0 / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.3221, allocations: 0 / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002573/0.3224, allocations: 144.8 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.307e-05/0.3225, allocations: 92.91 kB / 1.065 GB, free: 14.19 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.189e-05/0.3225, allocations: 8 kB / 1.065 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.5e-05/0.3226, allocations: 4 kB / 1.065 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.381e-05/0.3227, allocations: 11.92 kB / 1.065 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.3227, allocations: 7.938 kB / 1.065 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001888/0.3229, allocations: 196.6 kB / 1.066 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3229, allocations: 0 / 1.066 GB, free: 13.97 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002685/0.3232, allocations: 32 kB / 1.066 GB, free: 13.94 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.001031/0.3242, allocations: 439.1 kB / 1.066 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.000234/0.3244, allocations: 67.97 kB / 1.066 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3245, allocations: 0 / 1.066 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.554e-05/0.3246, allocations: 39.91 kB / 1.066 GB, free: 13.55 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003057/0.3249, allocations: 36.36 kB / 1.066 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006064/0.3255, allocations: 326.1 kB / 1.067 GB, free: 13.18 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003593/0.3259, allocations: 0.7246 MB / 1.067 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001102/0.326, allocations: 25.06 kB / 1.067 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.242e-05/0.326, allocations: 19.44 kB / 1.067 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of SimCode: time 4.31e-07/0.3261, allocations: 0 / 1.067 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of Templates: time 0.006155/0.3322, allocations: 2.41 MB / 1.07 GB, free: 9.992 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegerReplicator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches