Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001466/0.001466, allocations: 109.7 kB / 17.54 MB, free: 4.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 189.9 kB / 20.71 MB, free: 1.484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 225.6 MB / 249.3 MB, free: 3.164 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.315/2.315, allocations: 443.5 MB / 0.7304 GB, free: 13.9 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 67.89 kB / 1.059 GB, free: 0.9336 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.256, allocations: 160.7 MB / 1.216 GB, free: 15.91 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002602/0.2586, allocations: 1.554 MB / 1.217 GB, free: 14.34 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0003138/0.2589, allocations: 120.5 kB / 1.217 GB, free: 14.22 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.769e-05/0.2589, allocations: 0 / 1.217 GB, free: 14.22 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 9.836e-05/0.259, allocations: 11.86 kB / 1.217 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 2.607e-05/0.2591, allocations: 11.92 kB / 1.217 GB, free: 14.2 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002069/0.2593, allocations: 27.91 kB / 1.217 GB, free: 14.17 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.492e-05/0.2594, allocations: 47.91 kB / 1.217 GB, free: 14.12 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001034/0.2595, allocations: 19.98 kB / 1.217 GB, free: 14.1 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.633e-05/0.2595, allocations: 23.91 kB / 1.217 GB, free: 14.08 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.585e-05/0.2596, allocations: 39.83 kB / 1.217 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.569e-05/0.2596, allocations: 4 kB / 1.217 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 5.764e-05/0.2597, allocations: 15.94 kB / 1.217 GB, free: 14.02 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.069e-05/0.2597, allocations: 15.92 kB / 1.217 GB, free: 14 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.622e-05/0.2597, allocations: 19.88 kB / 1.217 GB, free: 13.98 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001299/0.2599, allocations: 64 kB / 1.217 GB, free: 13.92 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2599, allocations: 4 kB / 1.217 GB, free: 13.92 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.312e-06/0.2599, allocations: 0 / 1.217 GB, free: 13.92 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.2599, allocations: 4 kB / 1.217 GB, free: 13.91 MB / 0.9669 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.0005228/0.2604, allocations: 383.1 kB / 1.218 GB, free: 13.49 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.221e-05/0.2604, allocations: 8.031 kB / 1.218 GB, free: 13.48 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.707e-05/0.2605, allocations: 38.75 kB / 1.218 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.875e-05/0.2605, allocations: 8.891 kB / 1.218 GB, free: 13.43 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001561/0.2606, allocations: 176.3 kB / 1.218 GB, free: 13.21 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.2607, allocations: 8.375 kB / 1.218 GB, free: 13.21 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.264e-05/0.2607, allocations: 4.312 kB / 1.218 GB, free: 13.2 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002729/0.2609, allocations: 98.12 kB / 1.218 GB, free: 13.1 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.928e-06/0.261, allocations: 3.938 kB / 1.218 GB, free: 13.1 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.866e-06/0.261, allocations: 0 / 1.218 GB, free: 13.1 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.261, allocations: 4 kB / 1.218 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003068/0.2613, allocations: 75.92 kB / 1.218 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005092/0.2618, allocations: 336.6 kB / 1.219 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002007/0.262, allocations: 54.55 kB / 1.219 GB, free: 12.58 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.2621, allocations: 44.89 kB / 1.219 GB, free: 12.53 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 3.414e-05/0.2622, allocations: 4.094 kB / 1.219 GB, free: 12.53 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.475e-05/0.2622, allocations: 34.5 kB / 1.219 GB, free: 12.48 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=3): time 9.51e-07/0.2622, allocations: 0 / 1.219 GB, free: 12.48 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0005327/0.2627, allocations: 137.6 kB / 1.219 GB, free: 12.34 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.2628, allocations: 55.39 kB / 1.219 GB, free: 12.28 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.913e-05/0.2629, allocations: 114.2 kB / 1.219 GB, free: 12.16 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.63e-05/0.2629, allocations: 29.7 kB / 1.219 GB, free: 12.12 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.482e-05/0.2629, allocations: 92.09 kB / 1.219 GB, free: 12.03 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.211e-05/0.263, allocations: 12.89 kB / 1.219 GB, free: 12.02 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.858e-05/0.263, allocations: 17.72 kB / 1.219 GB, free: 11.99 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001252/0.2631, allocations: 318.8 kB / 1.219 GB, free: 11.67 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.2633, allocations: 35.95 kB / 1.219 GB, free: 11.64 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001424/0.2634, allocations: 39.89 kB / 1.22 GB, free: 11.6 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002715/0.2637, allocations: 72.78 kB / 1.22 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2637, allocations: 4 kB / 1.22 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003252/0.264, allocations: 105.5 kB / 1.22 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.264, allocations: 4 kB / 1.22 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.264, allocations: 0 / 1.22 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.264, allocations: 0 / 1.22 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.2642, allocations: 19.97 kB / 1.22 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.545e-06/0.2642, allocations: 8 kB / 1.22 GB, free: 11.38 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.02e-05/0.2642, allocations: 11.98 kB / 1.22 GB, free: 11.37 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.685e-05/0.2643, allocations: 0 / 1.22 GB, free: 11.37 MB / 0.9669 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 8.469e-05/0.2643, allocations: 121.7 kB / 1.22 GB, free: 11.24 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.277e-05/0.2644, allocations: 11.94 kB / 1.22 GB, free: 11.23 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003662/0.2647, allocations: 109.5 kB / 1.22 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.2647, allocations: 0 / 1.22 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.2648, allocations: 4 kB / 1.22 GB, free: 11.1 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.2648, allocations: 0 / 1.22 GB, free: 11.1 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001926/0.2649, allocations: 185.6 kB / 1.22 GB, free: 10.87 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.265, allocations: 0 / 1.22 GB, free: 10.87 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.46e-05/0.265, allocations: 19.97 kB / 1.22 GB, free: 10.85 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.265, allocations: 3.938 kB / 1.22 GB, free: 10.85 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.2651, allocations: 0 / 1.22 GB, free: 10.85 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.2651, allocations: 0 / 1.22 GB, free: 10.85 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2651, allocations: 4 kB / 1.22 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003675/0.2654, allocations: 203.7 kB / 1.22 GB, free: 10.63 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.299e-05/0.2655, allocations: 81.06 kB / 1.22 GB, free: 10.53 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.405e-05/0.2655, allocations: 4 kB / 1.22 GB, free: 10.53 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/0.2656, allocations: 11.98 kB / 1.22 GB, free: 10.52 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.282e-05/0.2656, allocations: 12.03 kB / 1.22 GB, free: 10.5 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.2656, allocations: 3.984 kB / 1.22 GB, free: 10.5 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.399e-05/0.2657, allocations: 91.33 kB / 1.221 GB, free: 10.41 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9e-08/0.2657, allocations: 0 / 1.221 GB, free: 10.41 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002226/0.2659, allocations: 19.92 kB / 1.221 GB, free: 10.39 MB / 0.9669 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.0006829/0.2666, allocations: 0.7358 MB / 1.221 GB, free: 9.629 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003378/0.2669, allocations: 75.92 kB / 1.221 GB, free: 9.555 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2669, allocations: 7.938 kB / 1.221 GB, free: 9.547 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001528/0.2671, allocations: 39.95 kB / 1.221 GB, free: 9.508 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002487/0.2673, allocations: 0 / 1.221 GB, free: 9.508 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001797/0.2691, allocations: 1.436 MB / 1.223 GB, free: 7.992 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.2694, allocations: 0.6885 MB / 1.223 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.093e-05/0.2694, allocations: 7.984 kB / 1.223 GB, free: 7.27 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.93e-05/0.2695, allocations: 19.44 kB / 1.224 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of SimCode: time 3.71e-07/0.2695, allocations: 0 / 1.224 GB, free: 7.25 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02271/0.2922, allocations: 1.816 MB / 1.225 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.041/7.334, allocations: 0 / 1.225 GB, free: 5.516 MB / 0.9669 GB " [Timeout remaining time 293] (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Utilities.Math.Examples.Average_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_10_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Average_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.545797883998603]