Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Average.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.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 101.8 kB / 16.36 MB, free: 6.285 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.00119/0.00119, allocations: 196.1 kB / 17.29 MB, free: 5.863 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.212/1.212, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.228/2.228, allocations: 442.6 MB / 0.7165 GB, free: 14.69 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 73.02 kB / 0.8773 GB, free: 11.01 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2518, allocations: 153 MB / 1.027 GB, free: 2.098 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002543/0.2544, allocations: 1.546 MB / 1.028 GB, free: 0.5469 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0002611/0.2547, allocations: 112.5 kB / 1.028 GB, free: 444 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.94e-05/0.2547, allocations: 8 kB / 1.028 GB, free: 436 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 9.363e-05/0.2548, allocations: 7.875 kB / 1.028 GB, free: 428 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 1.966e-05/0.2548, allocations: 3.938 kB / 1.028 GB, free: 424 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001933/0.255, allocations: 27.91 kB / 1.028 GB, free: 396 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 8.052e-05/0.2551, allocations: 59.83 kB / 1.028 GB, free: 336 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 9.96e-05/0.2552, allocations: 23.98 kB / 1.028 GB, free: 312 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 4.838e-05/0.2553, allocations: 27.91 kB / 1.028 GB, free: 284 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 5.621e-05/0.2553, allocations: 31.84 kB / 1.029 GB, free: 252 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.511e-05/0.2554, allocations: 4 kB / 1.029 GB, free: 248 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 5.082e-05/0.2554, allocations: 12 kB / 1.029 GB, free: 236 kB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 3.477e-05/0.2555, allocations: 11.98 kB / 1.029 GB, free: 224 kB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.278e-05/0.2555, allocations: 19.88 kB / 1.029 GB, free: 204 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000142/0.2556, allocations: 67.72 kB / 1.029 GB, free: 136 kB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.2557, allocations: 3.938 kB / 1.029 GB, free: 132 kB / 0.795 GB Notification: Performance of FrontEnd: time 1.172e-06/0.2557, allocations: 0 / 1.029 GB, free: 132 kB / 0.795 GB Notification: Performance of Transformations before backend: time 7.575e-06/0.2557, allocations: 4 kB / 1.029 GB, free: 128 kB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004552/0.2561, allocations: 379.3 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 7.316e-05/0.2562, allocations: 8.031 kB / 1.029 GB, free: 15.7 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.922e-05/0.2562, allocations: 8.844 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001409/0.2564, allocations: 180.3 kB / 1.029 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.895e-06/0.2564, allocations: 384 / 1.029 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.307e-05/0.2564, allocations: 4.375 kB / 1.029 GB, free: 15.47 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002443/0.2567, allocations: 90.14 kB / 1.029 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.2567, allocations: 4.188 kB / 1.029 GB, free: 15.37 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.2567, allocations: 7.938 kB / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.2567, allocations: 0 / 1.029 GB, free: 15.36 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002629/0.257, allocations: 75.91 kB / 1.029 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004656/0.2575, allocations: 340.6 kB / 1.03 GB, free: 14.91 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001759/0.2576, allocations: 54.53 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001318/0.2578, allocations: 44.91 kB / 1.03 GB, free: 14.8 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 3.022e-05/0.2578, allocations: 4 kB / 1.03 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.615e-05/0.2579, allocations: 34.56 kB / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 3.186e-06/0.2579, allocations: 0 / 1.03 GB, free: 14.75 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004656/0.2583, allocations: 141.5 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.164e-05/0.2584, allocations: 59.41 kB / 1.03 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.966e-05/0.2585, allocations: 117.7 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.423e-05/0.2585, allocations: 29.7 kB / 1.03 GB, free: 14.38 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.03e-05/0.2585, allocations: 95.98 kB / 1.03 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.2586, allocations: 7.906 kB / 1.03 GB, free: 14.27 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.094e-05/0.2586, allocations: 13.7 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001085/0.2587, allocations: 322.8 kB / 1.031 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001317/0.2588, allocations: 35.95 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.259, allocations: 32.16 kB / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002774/0.2592, allocations: 80.8 kB / 1.031 GB, free: 13.78 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.2593, allocations: 0 / 1.031 GB, free: 13.78 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002703/0.2595, allocations: 105.6 kB / 1.031 GB, free: 13.67 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.2596, allocations: 10.97 kB / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.2596, allocations: 0 / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.2596, allocations: 0 / 1.031 GB, free: 13.66 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.2597, allocations: 11.98 kB / 1.031 GB, free: 13.65 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.2597, allocations: 11.97 kB / 1.031 GB, free: 13.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.909e-05/0.2598, allocations: 15.89 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.827e-05/0.2598, allocations: 4 kB / 1.031 GB, free: 13.62 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * 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 7.532e-05/0.2599, allocations: 121.7 kB / 1.031 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.301e-05/0.2599, allocations: 0 / 1.031 GB, free: 13.49 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003156/0.2602, allocations: 117.4 kB / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.2603, allocations: 4 kB / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.2603, allocations: 0 / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.2603, allocations: 0 / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001682/0.2604, allocations: 185.6 kB / 1.031 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.2604, allocations: 4 kB / 1.031 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.044e-05/0.2605, allocations: 11.98 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.2606, allocations: 0 / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.2606, allocations: 0 / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.2606, allocations: 4 kB / 1.031 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.2606, allocations: 7.922 kB / 1.031 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000319/0.2609, allocations: 207.3 kB / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.486e-05/0.2609, allocations: 77.11 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.384e-05/0.261, allocations: 3.984 kB / 1.032 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.633e-05/0.2611, allocations: 19.92 kB / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.547e-05/0.2611, allocations: 4 kB / 1.032 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.2611, allocations: 4 kB / 1.032 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.214e-05/0.2612, allocations: 95.27 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2612, allocations: 0 / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002134/0.2614, allocations: 15.84 kB / 1.032 GB, free: 12.65 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0001381/0.2615, allocations: 110.8 kB / 1.032 GB, free: 12.53 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002961/0.2618, allocations: 75.92 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.2618, allocations: 0 / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.262, allocations: 43.89 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002404/0.2622, allocations: 4 kB / 1.032 GB, free: 12.41 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002898/0.2625, allocations: 141.6 kB / 1.032 GB, free: 12.24 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002283/0.2628, allocations: 0.6924 MB / 1.033 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.706e-05/0.2628, allocations: 11.98 kB / 1.033 GB, free: 11.51 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.382e-05/0.2629, allocations: 11.44 kB / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of SimCode: time 2.5e-07/0.2629, allocations: 0 / 1.033 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of Templates: time 0.002594/0.2655, allocations: 0.7672 MB / 1.034 GB, free: 10.74 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches