Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001355/0.001355, allocations: 113 kB / 16.46 MB, free: 6.453 MB / 14.72 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.001595/0.001595, allocations: 213.7 kB / 19.43 MB, free: 3.625 MB / 14.72 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 1.569/1.569, allocations: 230.6 MB / 252.8 MB, free: 8.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.173/3.173, allocations: 0.49 GB / 0.7916 GB, free: 33.3 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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_12_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 77.11 kB / 1.149 GB, free: 26.34 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3422/0.3442, allocations: 176.1 MB / 1.321 GB, free: 3.348 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002757/0.3469, allocations: 1.552 MB / 1.322 GB, free: 1.789 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003016/0.3472, allocations: 111.7 kB / 1.322 GB, free: 1.68 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.329e-05/0.3473, allocations: 7.875 kB / 1.322 GB, free: 1.672 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001045/0.3474, allocations: 7.922 kB / 1.322 GB, free: 1.664 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 2.337e-05/0.3474, allocations: 7.938 kB / 1.322 GB, free: 1.656 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002148/0.3476, allocations: 31.89 kB / 1.322 GB, free: 1.625 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001105/0.3477, allocations: 55.78 kB / 1.323 GB, free: 1.57 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001128/0.3478, allocations: 27.98 kB / 1.323 GB, free: 1.543 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 5.157e-05/0.3479, allocations: 19.92 kB / 1.323 GB, free: 1.523 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 6.405e-05/0.3479, allocations: 35.84 kB / 1.323 GB, free: 1.488 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.712e-05/0.348, allocations: 4 kB / 1.323 GB, free: 1.484 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.415e-05/0.348, allocations: 15.98 kB / 1.323 GB, free: 1.469 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 4.397e-05/0.3481, allocations: 15.97 kB / 1.323 GB, free: 1.453 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.597e-05/0.3481, allocations: 23.81 kB / 1.323 GB, free: 1.43 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001391/0.3482, allocations: 56.03 kB / 1.323 GB, free: 1.375 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.3483, allocations: 4 kB / 1.323 GB, free: 1.371 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.052e-06/0.3483, allocations: 4 kB / 1.323 GB, free: 1.367 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.3483, allocations: 0 / 1.323 GB, free: 1.367 MB / 1.014 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.0005684/0.3488, allocations: 384.9 kB / 1.323 GB, free: 0.9414 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.612e-05/0.3489, allocations: 11.98 kB / 1.323 GB, free: 0.9297 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.533e-05/0.3489, allocations: 42.73 kB / 1.323 GB, free: 0.8789 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.615e-05/0.3489, allocations: 4.938 kB / 1.323 GB, free: 0.875 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001832/0.3491, allocations: 184.2 kB / 1.323 GB, free: 0.6562 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.3491, allocations: 12.36 kB / 1.323 GB, free: 0.6445 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.588e-06/0.3491, allocations: 4.375 kB / 1.323 GB, free: 0.6406 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002797/0.3494, allocations: 86.2 kB / 1.323 GB, free: 0.5508 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.726e-06/0.3494, allocations: 3.938 kB / 1.323 GB, free: 0.5469 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-06/0.3494, allocations: 0 / 1.323 GB, free: 0.5469 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.3495, allocations: 4 kB / 1.323 GB, free: 0.543 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003349/0.3498, allocations: 91.78 kB / 1.324 GB, free: 464 kB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005498/0.3503, allocations: 324.7 kB / 1.324 GB, free: 88 kB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002314/0.3506, allocations: 62.56 kB / 1.324 GB, free: 16 kB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001913/0.3508, allocations: 40.91 kB / 1.324 GB, free: 15.97 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 3.036e-05/0.3508, allocations: 4 kB / 1.324 GB, free: 15.97 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.625e-05/0.3508, allocations: 30.56 kB / 1.324 GB, free: 15.93 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.3508, allocations: 0 / 1.324 GB, free: 15.93 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0005898/0.3514, allocations: 141.5 kB / 1.324 GB, free: 15.79 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.729e-05/0.3515, allocations: 51.41 kB / 1.324 GB, free: 15.72 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.897e-05/0.3516, allocations: 125.8 kB / 1.324 GB, free: 15.59 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.662e-05/0.3516, allocations: 29.64 kB / 1.324 GB, free: 15.55 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.374e-05/0.3516, allocations: 92.09 kB / 1.324 GB, free: 15.46 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.3517, allocations: 7.891 kB / 1.324 GB, free: 15.45 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.033e-05/0.3517, allocations: 21.7 kB / 1.324 GB, free: 15.43 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001417/0.3518, allocations: 318.8 kB / 1.325 GB, free: 15.11 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001663/0.352, allocations: 35.95 kB / 1.325 GB, free: 15.07 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001572/0.3522, allocations: 35.97 kB / 1.325 GB, free: 15.04 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003032/0.3525, allocations: 72.78 kB / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.3525, allocations: 0 / 1.325 GB, free: 14.96 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000355/0.3528, allocations: 105.6 kB / 1.325 GB, free: 14.85 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/0.3528, allocations: 6.656 kB / 1.325 GB, free: 14.85 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.517e-06/0.3528, allocations: 0 / 1.325 GB, free: 14.85 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.3528, allocations: 0 / 1.325 GB, free: 14.85 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.353, allocations: 23.92 kB / 1.325 GB, free: 14.82 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.413e-06/0.353, allocations: 7.984 kB / 1.325 GB, free: 14.82 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.828e-05/0.3531, allocations: 11.98 kB / 1.325 GB, free: 14.8 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.055e-05/0.3531, allocations: 4 kB / 1.325 GB, free: 14.8 MB / 1.029 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.565e-05/0.3532, allocations: 113.8 kB / 1.325 GB, free: 14.68 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.815e-05/0.3532, allocations: 4 kB / 1.325 GB, free: 14.68 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004131/0.3536, allocations: 117.8 kB / 1.325 GB, free: 14.54 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.3536, allocations: 0 / 1.325 GB, free: 14.54 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.3536, allocations: 4 kB / 1.325 GB, free: 14.54 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3536, allocations: 7.969 kB / 1.325 GB, free: 14.53 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002062/0.3538, allocations: 181.5 kB / 1.325 GB, free: 14.3 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.3538, allocations: 0 / 1.325 GB, free: 14.3 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001059/0.3539, allocations: 19.92 kB / 1.325 GB, free: 14.29 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.3539, allocations: 0 / 1.325 GB, free: 14.29 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.784e-06/0.354, allocations: 0 / 1.325 GB, free: 14.29 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.354, allocations: 4 kB / 1.325 GB, free: 14.28 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.354, allocations: 3.984 kB / 1.325 GB, free: 14.28 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004207/0.3544, allocations: 195.4 kB / 1.326 GB, free: 14.07 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 4.716e-05/0.3544, allocations: 81.06 kB / 1.326 GB, free: 13.97 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.541e-05/0.3544, allocations: 7.984 kB / 1.326 GB, free: 13.96 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.3546, allocations: 11.98 kB / 1.326 GB, free: 13.95 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.83e-05/0.3546, allocations: 8 kB / 1.326 GB, free: 13.95 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.562e-06/0.3546, allocations: 0 / 1.326 GB, free: 13.95 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.715e-05/0.3547, allocations: 91.27 kB / 1.326 GB, free: 13.86 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.3547, allocations: 0 / 1.326 GB, free: 13.86 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000238/0.3549, allocations: 15.94 kB / 1.326 GB, free: 13.84 MB / 1.029 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.0007924/0.3557, allocations: 0.7435 MB / 1.327 GB, free: 13.07 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003697/0.3561, allocations: 79.92 kB / 1.327 GB, free: 12.99 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3561, allocations: 0 / 1.327 GB, free: 12.99 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001697/0.3562, allocations: 43.89 kB / 1.327 GB, free: 12.95 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.3565, allocations: 0 / 1.327 GB, free: 12.95 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/0.3585, allocations: 1.437 MB / 1.328 GB, free: 11.44 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.3589, allocations: 0.6885 MB / 1.329 GB, free: 10.72 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.444e-05/0.3589, allocations: 8 kB / 1.329 GB, free: 10.71 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.5e-05/0.359, allocations: 19.42 kB / 1.329 GB, free: 10.7 MB / 1.029 GB Notification: Performance of SimCode: time 3.21e-07/0.359, allocations: 4 kB / 1.329 GB, free: 10.69 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02504/0.384, allocations: 1.837 MB / 1.331 GB, free: 8.926 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.486/8.87, allocations: 5.125 kB / 1.331 GB, free: 8.926 MB / 1.029 GB " [Timeout remaining time 291] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file Buildings_12_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_12_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Average_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 15.760938088875264]