Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008821/0.0008821, allocations: 76.44 kB / 19.17 MB, free: 0.7383 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 173.2 kB / 22.46 MB, free: 2.098 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9536/0.9536, allocations: 177.1 MB / 202.8 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.689/1.689, allocations: 359 MB / 0.6037 GB, free: 11.09 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 0.9505 GB, free: 3.5 MB / 0.9011 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.146e-05/2.347e-05, allocations: 2.281 kB / 0.9505 GB, free: 3.496 MB / 0.9011 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002166/0.00219, allocations: 1.549 MB / 0.952 GB, free: 1.93 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.000283/0.002473, allocations: 111.7 kB / 0.9521 GB, free: 1.82 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.788e-05/0.00252, allocations: 4 kB / 0.9521 GB, free: 1.816 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0001208/0.002641, allocations: 11.88 kB / 0.9521 GB, free: 1.805 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 2.173e-05/0.002663, allocations: 11.91 kB / 0.9521 GB, free: 1.793 MB / 0.9011 GB Notification: Performance of NFTyping.typeClassSections: time 0.000257/0.00292, allocations: 31.91 kB / 0.9522 GB, free: 1.762 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 8.857e-05/0.003009, allocations: 51.84 kB / 0.9522 GB, free: 1.711 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.003123, allocations: 19.92 kB / 0.9522 GB, free: 1.691 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 8.03e-05/0.003203, allocations: 39.89 kB / 0.9523 GB, free: 1.652 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 5.962e-05/0.003263, allocations: 19.97 kB / 0.9523 GB, free: 1.633 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 1.744e-05/0.00328, allocations: 7.938 kB / 0.9523 GB, free: 1.625 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 6.04e-05/0.003341, allocations: 12 kB / 0.9523 GB, free: 1.613 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 4.158e-05/0.003382, allocations: 11.98 kB / 0.9523 GB, free: 1.602 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 2.709e-05/0.003409, allocations: 23.91 kB / 0.9524 GB, free: 1.578 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.0001203/0.00353, allocations: 55.81 kB / 0.9524 GB, free: 1.523 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.003532, allocations: 0 / 0.9524 GB, free: 1.523 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.002e-06/0.003533, allocations: 4 kB / 0.9524 GB, free: 1.52 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.003537, allocations: 0 / 0.9524 GB, free: 1.52 MB / 0.9011 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.0003849/0.003922, allocations: 306.1 kB / 0.9527 GB, free: 1.188 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.00396, allocations: 8.031 kB / 0.9527 GB, free: 1.18 MB / 0.9011 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.344e-05/0.003993, allocations: 46.67 kB / 0.9528 GB, free: 1.125 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.343e-05/0.004017, allocations: 4.891 kB / 0.9528 GB, free: 1.121 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00013/0.004147, allocations: 129.7 kB / 0.9529 GB, free: 0.9688 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.004158, allocations: 4.375 kB / 0.9529 GB, free: 0.9648 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.368e-06/0.004167, allocations: 384 / 0.9529 GB, free: 0.9648 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001885/0.004356, allocations: 94.14 kB / 0.953 GB, free: 0.8672 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.004363, allocations: 192 / 0.953 GB, free: 0.8672 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.004372, allocations: 4.312 kB / 0.953 GB, free: 0.8633 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.742e-06/0.004379, allocations: 8.125 kB / 0.953 GB, free: 0.8555 MB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001559/0.004534, allocations: 79.91 kB / 0.9531 GB, free: 0.7773 MB / 0.9011 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003677/0.004902, allocations: 291.8 kB / 0.9533 GB, free: 460 kB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001196/0.005022, allocations: 50.53 kB / 0.9534 GB, free: 400 kB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.615e-05/0.005098, allocations: 40.92 kB / 0.9534 GB, free: 356 kB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 3.871e-05/0.005137, allocations: 7.984 kB / 0.9534 GB, free: 348 kB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.005155, allocations: 30.56 kB / 0.9535 GB, free: 308 kB / 0.9011 GB Notification: Performance of pre-optimization done (n=3): time 1.893e-06/0.005157, allocations: 4 kB / 0.9535 GB, free: 304 kB / 0.9011 GB Notification: Performance of matching and sorting (n=3): time 0.000308/0.005465, allocations: 133.6 kB / 0.9536 GB, free: 164 kB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.029e-05/0.005495, allocations: 55.41 kB / 0.9536 GB, free: 96 kB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.788e-05/0.005573, allocations: 117.8 kB / 0.9538 GB, free: 15.97 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.137e-05/0.005585, allocations: 25.7 kB / 0.9538 GB, free: 15.94 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 4.136e-05/0.005626, allocations: 96.08 kB / 0.9539 GB, free: 15.84 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.991e-05/0.005646, allocations: 15.89 kB / 0.9539 GB, free: 15.82 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.821e-05/0.005674, allocations: 13.72 kB / 0.9539 GB, free: 15.8 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.977e-05/0.005754, allocations: 322.8 kB / 0.9542 GB, free: 15.48 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.773e-05/0.005832, allocations: 27.97 kB / 0.9542 GB, free: 15.45 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.914e-05/0.005901, allocations: 36.56 kB / 0.9543 GB, free: 15.42 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001391/0.00604, allocations: 80.98 kB / 0.9544 GB, free: 15.34 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.006042, allocations: 0 / 0.9544 GB, free: 15.34 MB / 0.9167 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000174/0.006216, allocations: 113.5 kB / 0.9545 GB, free: 15.22 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.00623, allocations: 4 kB / 0.9545 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.629e-06/0.006235, allocations: 0 / 0.9545 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.006246, allocations: 4 kB / 0.9545 GB, free: 15.21 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.879e-05/0.006325, allocations: 19.98 kB / 0.9545 GB, free: 15.19 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.00633, allocations: 0 / 0.9545 GB, free: 15.19 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.703e-05/0.006367, allocations: 11.98 kB / 0.9545 GB, free: 15.18 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.893e-05/0.006385, allocations: 0 / 0.9545 GB, free: 15.18 MB / 0.9167 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 6.403e-05/0.00645, allocations: 131.7 kB / 0.9546 GB, free: 15.04 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.474e-05/0.006464, allocations: 7.891 kB / 0.9546 GB, free: 15.04 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002131/0.006677, allocations: 113.6 kB / 0.9547 GB, free: 14.91 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.414e-06/0.00668, allocations: 0 / 0.9547 GB, free: 14.91 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.006685, allocations: 7.922 kB / 0.9547 GB, free: 14.9 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.006688, allocations: 0 / 0.9547 GB, free: 14.9 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000111/0.006799, allocations: 140.7 kB / 0.9549 GB, free: 14.72 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.0068, allocations: 4 kB / 0.9549 GB, free: 14.72 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.287e-05/0.006843, allocations: 15.97 kB / 0.9549 GB, free: 14.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.006845, allocations: 0 / 0.9549 GB, free: 14.7 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.006852, allocations: 0 / 0.9549 GB, free: 14.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.006854, allocations: 8 kB / 0.9549 GB, free: 14.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.006855, allocations: 0 / 0.9549 GB, free: 14.7 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001999/0.007055, allocations: 203.4 kB / 0.9551 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 6.282e-06/0.007061, allocations: 0 / 0.9551 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.18e-05/0.007073, allocations: 4 kB / 0.9551 GB, free: 14.48 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.845e-05/0.007121, allocations: 7.984 kB / 0.9551 GB, free: 14.47 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.625e-05/0.007158, allocations: 11.98 kB / 0.9551 GB, free: 14.46 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.141e-06/0.007164, allocations: 4 kB / 0.9551 GB, free: 14.45 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 3.4e-05/0.007198, allocations: 91.27 kB / 0.9552 GB, free: 14.36 MB / 0.9167 GB Notification: Performance of sort global known variables: time 6e-08/0.007198, allocations: 3.938 kB / 0.9552 GB, free: 14.36 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0001589/0.007357, allocations: 15.94 kB / 0.9552 GB, free: 14.34 MB / 0.9167 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.0007318/0.008088, allocations: 0.7319 MB / 0.956 GB, free: 13.59 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0002043/0.008293, allocations: 75.92 kB / 0.956 GB, free: 13.51 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.008294, allocations: 0 / 0.956 GB, free: 13.51 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 7.553e-05/0.00837, allocations: 43.89 kB / 0.9561 GB, free: 13.47 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002738/0.008644, allocations: 4 kB / 0.9561 GB, free: 13.46 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001179/0.009822, allocations: 1.431 MB / 0.9575 GB, free: 11.95 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.335e-05/0.009886, allocations: 87.17 kB / 0.9575 GB, free: 11.85 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 3.633e-05/0.009922, allocations: 11.98 kB / 0.9576 GB, free: 11.84 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.397e-05/0.009966, allocations: 16.48 kB / 0.9576 GB, free: 11.82 MB / 0.9167 GB Notification: Performance of SimCode: time 6.22e-07/0.009967, allocations: 0 / 0.9576 GB, free: 11.82 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01757/0.02753, allocations: 2.516 MB / 0.96 GB, free: 9.441 MB / 0.9167 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.031/7.059, allocations: 6.297 kB / 0.96 GB, free: 9.441 MB / 0.9167 GB " [Timeout remaining time 293] (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_11_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Average_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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: 11.254352661781013]