Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006908/0.006908, allocations: 104.4 kB / 15.74 MB, free: 6.441 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.001573/0.001573, allocations: 190.2 kB / 16.67 MB, free: 6.355 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.238/1.238, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.068/2.068, allocations: 390.2 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 67.84 kB / 0.9504 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2341, allocations: 140.4 MB / 1.087 GB, free: 1.941 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002477/0.2366, allocations: 1.535 MB / 1.089 GB, free: 404 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0002911/0.2369, allocations: 120.4 kB / 1.089 GB, free: 280 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.068e-05/0.237, allocations: 0 / 1.089 GB, free: 280 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001048/0.2371, allocations: 7.875 kB / 1.089 GB, free: 272 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 2.373e-05/0.2371, allocations: 7.938 kB / 1.089 GB, free: 264 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000191/0.2373, allocations: 23.97 kB / 1.089 GB, free: 240 kB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 8.915e-05/0.2374, allocations: 59.77 kB / 1.089 GB, free: 180 kB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.2375, allocations: 31.95 kB / 1.089 GB, free: 148 kB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.572e-05/0.2376, allocations: 23.92 kB / 1.089 GB, free: 124 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.742e-05/0.2376, allocations: 31.84 kB / 1.089 GB, free: 92 kB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.412e-05/0.2377, allocations: 4 kB / 1.089 GB, free: 88 kB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 5.223e-05/0.2377, allocations: 12 kB / 1.089 GB, free: 76 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 3.549e-05/0.2378, allocations: 11.98 kB / 1.089 GB, free: 64 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 3.288e-05/0.2378, allocations: 23.88 kB / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001337/0.2379, allocations: 71.8 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.2379, allocations: 3.938 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of FrontEnd: time 9.82e-07/0.238, allocations: 0 / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.107e-06/0.238, allocations: 0 / 1.089 GB, free: 15.96 MB / 0.8575 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.0004715/0.2384, allocations: 378.9 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.2385, allocations: 12.03 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.945e-05/0.2385, allocations: 34.75 kB / 1.09 GB, free: 15.49 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.49e-05/0.2385, allocations: 8.844 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001363/0.2387, allocations: 180.3 kB / 1.09 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.569e-05/0.2387, allocations: 4.375 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.344e-05/0.2387, allocations: 4.375 kB / 1.09 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002613/0.239, allocations: 90.12 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.126e-06/0.239, allocations: 7.938 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.716e-06/0.239, allocations: 0 / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.239, allocations: 0 / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002918/0.2393, allocations: 79.92 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004614/0.2398, allocations: 328.6 kB / 1.09 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001866/0.24, allocations: 58.55 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001484/0.2402, allocations: 40.91 kB / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.2402, allocations: 0 / 1.091 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.994e-05/0.2402, allocations: 38.56 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=3): time 8.62e-07/0.2402, allocations: 3.938 kB / 1.091 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005157/0.2408, allocations: 149.5 kB / 1.091 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.632e-05/0.2408, allocations: 55.39 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.153e-05/0.2409, allocations: 113.8 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.2409, allocations: 29.7 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.713e-05/0.2409, allocations: 91.98 kB / 1.091 GB, free: 14.08 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.871e-05/0.241, allocations: 11.89 kB / 1.091 GB, free: 14.07 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.17e-05/0.241, allocations: 17.72 kB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.458e-05/0.2411, allocations: 318.8 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001441/0.2413, allocations: 31.95 kB / 1.091 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001333/0.2414, allocations: 35.97 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002755/0.2417, allocations: 84.98 kB / 1.091 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.2417, allocations: 0 / 1.091 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003095/0.242, allocations: 101.5 kB / 1.092 GB, free: 13.47 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.356e-05/0.242, allocations: 9.406 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.242, allocations: 0 / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.242, allocations: 4 kB / 1.092 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.2422, allocations: 15.97 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.118e-06/0.2422, allocations: 4 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.334e-05/0.2422, allocations: 11.98 kB / 1.092 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.2423, allocations: 4 kB / 1.092 GB, free: 13.42 MB / 0.8575 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.2e-05/0.2423, allocations: 113.8 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.34e-05/0.2424, allocations: 0 / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003574/0.2427, allocations: 125.4 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.2427, allocations: 0 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.826e-06/0.2428, allocations: 0 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.004e-06/0.2428, allocations: 0 / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001653/0.2429, allocations: 181.5 kB / 1.092 GB, free: 12.94 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.41e-07/0.2429, allocations: 4 kB / 1.092 GB, free: 12.93 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.926e-05/0.243, allocations: 15.97 kB / 1.092 GB, free: 12.92 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.2431, allocations: 4 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-06/0.2431, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.2431, allocations: 7.938 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.2431, allocations: 0 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003482/0.2434, allocations: 207.2 kB / 1.092 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.085e-05/0.2435, allocations: 81.11 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.2435, allocations: 0 / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001022/0.2436, allocations: 11.98 kB / 1.092 GB, free: 12.58 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.62e-05/0.2436, allocations: 7.984 kB / 1.092 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.2437, allocations: 8 kB / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.004e-05/0.2437, allocations: 87.28 kB / 1.092 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2437, allocations: 0 / 1.092 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002171/0.2439, allocations: 15.84 kB / 1.092 GB, free: 12.46 MB / 0.8575 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.0006059/0.2445, allocations: 0.7358 MB / 1.093 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003254/0.2449, allocations: 83.86 kB / 1.093 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.2449, allocations: 4 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.245, allocations: 35.95 kB / 1.093 GB, free: 11.58 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002607/0.2453, allocations: 11.98 kB / 1.093 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001605/0.2469, allocations: 1.424 MB / 1.095 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002245/0.2472, allocations: 0.6924 MB / 1.095 GB, free: 9.348 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.723e-05/0.2472, allocations: 15.94 kB / 1.095 GB, free: 9.332 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.566e-05/0.2473, allocations: 15.44 kB / 1.095 GB, free: 9.32 MB / 0.8575 GB Notification: Performance of SimCode: time 1.793e-06/0.2473, allocations: 0 / 1.095 GB, free: 9.32 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.184/1.432, allocations: 1.821 MB / 1.097 GB, free: 7.57 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.79/12.22, allocations: 7.875 kB / 1.097 GB, free: 7.566 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Average.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches