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.0009746/0.0009746, allocations: 116.5 kB / 16.37 MB, free: 6.012 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.0009216/0.0009217, allocations: 191.2 kB / 17.31 MB, free: 5.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.189/1.189, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.202/2.202, allocations: 442.6 MB / 0.7165 GB, free: 14.65 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 60.22 kB / 0.8773 GB, free: 11.01 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2496/0.2508, allocations: 153 MB / 1.027 GB, free: 2.098 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegerReplicator): time 0.002728/0.2536, allocations: 1.798 MB / 1.028 GB, free: 300 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001527/0.2551, allocations: 1.1 MB / 1.03 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.366e-05/0.2552, allocations: 4 kB / 1.03 GB, free: 15.18 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002892/0.2555, allocations: 55.73 kB / 1.03 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002111/0.2557, allocations: 75.67 kB / 1.03 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005147/0.2563, allocations: 226.8 kB / 1.03 GB, free: 14.83 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001794/0.2565, allocations: 147.6 kB / 1.03 GB, free: 14.69 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 9.841e-05/0.2566, allocations: 25.11 kB / 1.03 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.773e-05/0.2567, allocations: 67.69 kB / 1.03 GB, free: 14.6 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.98e-05/0.2568, allocations: 63.75 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.055e-05/0.2568, allocations: 8 kB / 1.03 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001404/0.2569, allocations: 75.88 kB / 1.03 GB, free: 14.45 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 8.006e-05/0.257, allocations: 39.91 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 7.997e-05/0.2571, allocations: 55.61 kB / 1.03 GB, free: 14.36 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002793/0.2574, allocations: 199.4 kB / 1.031 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2574, allocations: 4 kB / 1.031 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2574, allocations: 0 / 1.031 GB, free: 14.16 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.2574, allocations: 0 / 1.031 GB, free: 14.16 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.0006846/0.2581, allocations: 493.3 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.2581, allocations: 8.031 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.275e-05/0.2582, allocations: 16.75 kB / 1.031 GB, free: 13.6 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003104/0.2585, allocations: 256.8 kB / 1.031 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.2585, allocations: 4.375 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.46e-05/0.2586, allocations: 8.125 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002051/0.2588, allocations: 96.17 kB / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.046e-06/0.2588, allocations: 0 / 1.031 GB, free: 13.19 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.2588, allocations: 7.984 kB / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.613e-05/0.2588, allocations: 0 / 1.031 GB, free: 13.18 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001022/0.2589, allocations: 31.98 kB / 1.031 GB, free: 13.15 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005077/0.2595, allocations: 364.5 kB / 1.032 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002055/0.2597, allocations: 86.67 kB / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.31e-05/0.2598, allocations: 36.83 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.2598, allocations: 3.938 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001702/0.26, allocations: 87.41 kB / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.573e-06/0.26, allocations: 0 / 1.032 GB, free: 12.51 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.0003538/0.2603, allocations: 141.7 kB / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.463e-05/0.2604, allocations: 102.8 kB / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002465/0.2607, allocations: 263 kB / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.886e-05/0.2607, allocations: 29.7 kB / 1.032 GB, free: 11.93 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 7.983e-05/0.2608, allocations: 112.1 kB / 1.033 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.292e-05/0.2608, allocations: 19.72 kB / 1.033 GB, free: 11.8 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.818e-05/0.2609, allocations: 33.7 kB / 1.033 GB, free: 11.76 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.261, allocations: 326.8 kB / 1.033 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.1e-05/0.2611, allocations: 31.92 kB / 1.033 GB, free: 11.4 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.2612, allocations: 68.27 kB / 1.033 GB, free: 11.32 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001307/0.2613, allocations: 69.77 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2613, allocations: 4 kB / 1.033 GB, free: 11.24 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001961/0.2615, allocations: 117.4 kB / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.2615, allocations: 7.125 kB / 1.033 GB, free: 11.12 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.2616, allocations: 3.984 kB / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.2616, allocations: 0 / 1.033 GB, free: 11.11 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.509e-05/0.2617, allocations: 12 kB / 1.033 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.563e-06/0.2617, allocations: 0 / 1.033 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.256e-05/0.2617, allocations: 19.81 kB / 1.033 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.203e-05/0.2618, allocations: 7.984 kB / 1.033 GB, free: 11.07 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.000106/0.2619, allocations: 142.5 kB / 1.033 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.467e-05/0.2619, allocations: 15.81 kB / 1.033 GB, free: 10.91 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.035e-05/0.262, allocations: 21.41 kB / 1.033 GB, free: 10.89 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.905e-05/0.262, allocations: 7.984 kB / 1.033 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.262, allocations: 0 / 1.033 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.262, allocations: 3.938 kB / 1.033 GB, free: 10.88 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.2622, allocations: 213.6 kB / 1.034 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.2622, allocations: 0 / 1.034 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.748e-05/0.2622, allocations: 4 kB / 1.034 GB, free: 10.62 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.2622, allocations: 8 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.2622, allocations: 4 kB / 1.034 GB, free: 10.61 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.2623, allocations: 3.984 kB / 1.034 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.2623, allocations: 0 / 1.034 GB, free: 10.6 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002182/0.2625, allocations: 145 kB / 1.034 GB, free: 10.44 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.286e-05/0.2626, allocations: 96.89 kB / 1.034 GB, free: 10.33 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.858e-05/0.2626, allocations: 11.94 kB / 1.034 GB, free: 10.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.239e-05/0.2627, allocations: 4 kB / 1.034 GB, free: 10.31 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.439e-05/0.2627, allocations: 11.98 kB / 1.034 GB, free: 10.3 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.263e-05/0.2627, allocations: 7.938 kB / 1.034 GB, free: 10.29 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000158/0.2629, allocations: 195.2 kB / 1.034 GB, free: 10.1 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.81e-07/0.2629, allocations: 0 / 1.034 GB, free: 10.1 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002255/0.2631, allocations: 32 kB / 1.034 GB, free: 10.07 MB / 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.0009364/0.2641, allocations: 419.3 kB / 1.035 GB, free: 9.805 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.000207/0.2643, allocations: 75.91 kB / 1.035 GB, free: 9.73 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2643, allocations: 0 / 1.035 GB, free: 9.73 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 9.765e-05/0.2644, allocations: 35.92 kB / 1.035 GB, free: 9.695 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.2647, allocations: 40.81 kB / 1.035 GB, free: 9.66 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004371/0.2651, allocations: 294.9 kB / 1.035 GB, free: 9.348 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.2654, allocations: 0.7241 MB / 1.036 GB, free: 8.598 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 6.407e-05/0.2654, allocations: 25.38 kB / 1.036 GB, free: 8.574 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.149e-05/0.2655, allocations: 27.36 kB / 1.036 GB, free: 8.547 MB / 0.8106 GB Notification: Performance of SimCode: time 2.71e-07/0.2655, allocations: 0 / 1.036 GB, free: 8.547 MB / 0.8106 GB Notification: Performance of Templates: time 0.005013/0.2705, allocations: 2.537 MB / 1.038 GB, free: 6.043 MB / 0.8106 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 -s cvode -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