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.001471/0.001471, allocations: 99.64 kB / 18.95 MB, free: 2.836 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.001809/0.001809, allocations: 214.6 kB / 22.24 MB, free: 5.102 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.556/1.556, allocations: 230.6 MB / 256 MB, free: 7.809 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.196/3.196, allocations: 0.4892 GB / 0.7943 GB, free: 35.61 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.002058/0.002058, allocations: 66.39 kB / 1.153 GB, free: 25.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.3407, allocations: 176.1 MB / 1.325 GB, free: 2.34 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003199/0.3439, allocations: 1.552 MB / 1.327 GB, free: 0.7812 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.0003868/0.3443, allocations: 111.7 kB / 1.327 GB, free: 0.6719 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.55e-05/0.3443, allocations: 4 kB / 1.327 GB, free: 0.668 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001339/0.3445, allocations: 11.86 kB / 1.327 GB, free: 0.6562 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 2.465e-05/0.3445, allocations: 3.938 kB / 1.327 GB, free: 0.6523 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002859/0.3448, allocations: 31.95 kB / 1.327 GB, free: 0.6211 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.000129/0.3449, allocations: 59.78 kB / 1.327 GB, free: 0.5625 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.345, allocations: 20.27 kB / 1.327 GB, free: 0.543 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 5.602e-05/0.3451, allocations: 19.92 kB / 1.327 GB, free: 0.5234 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.845e-05/0.3452, allocations: 27.91 kB / 1.327 GB, free: 0.4961 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.933e-05/0.3452, allocations: 11.94 kB / 1.327 GB, free: 496 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 7.434e-05/0.3453, allocations: 15.98 kB / 1.327 GB, free: 480 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 4.714e-05/0.3453, allocations: 11.98 kB / 1.327 GB, free: 468 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 4.283e-05/0.3454, allocations: 23.86 kB / 1.327 GB, free: 444 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001546/0.3455, allocations: 55.75 kB / 1.327 GB, free: 388 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.072e-06/0.3455, allocations: 4 kB / 1.327 GB, free: 384 kB / 1.014 GB Notification: Performance of FrontEnd: time 2.044e-06/0.3455, allocations: 3.938 kB / 1.327 GB, free: 380 kB / 1.014 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.3455, allocations: 0 / 1.327 GB, free: 380 kB / 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.0005925/0.3461, allocations: 306 kB / 1.327 GB, free: 40 kB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.519e-05/0.3462, allocations: 16.03 kB / 1.327 GB, free: 24 kB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.982e-05/0.3463, allocations: 34.73 kB / 1.327 GB, free: 15.98 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.139e-05/0.3463, allocations: 8.938 kB / 1.327 GB, free: 15.97 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001883/0.3465, allocations: 134.3 kB / 1.327 GB, free: 15.82 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.226e-05/0.3465, allocations: 4.375 kB / 1.327 GB, free: 15.81 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.595e-05/0.3465, allocations: 4.375 kB / 1.327 GB, free: 15.81 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002948/0.3468, allocations: 90.14 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.514e-05/0.3468, allocations: 3.938 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.957e-06/0.3468, allocations: 0 / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.3468, allocations: 4 kB / 1.328 GB, free: 15.71 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002984/0.3471, allocations: 79.91 kB / 1.328 GB, free: 15.63 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000552/0.3477, allocations: 287.8 kB / 1.328 GB, free: 15.3 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000209/0.3479, allocations: 54.53 kB / 1.328 GB, free: 15.24 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001485/0.348, allocations: 40.92 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 5.411e-05/0.3481, allocations: 4 kB / 1.328 GB, free: 15.2 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.3481, allocations: 42.48 kB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.3481, allocations: 0 / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.000544/0.3487, allocations: 141.6 kB / 1.328 GB, free: 15 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.718e-05/0.3487, allocations: 51.41 kB / 1.328 GB, free: 14.94 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001002/0.3488, allocations: 113.8 kB / 1.328 GB, free: 14.82 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.3488, allocations: 25.7 kB / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 6.051e-05/0.3489, allocations: 96.08 kB / 1.328 GB, free: 14.69 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.291e-05/0.3489, allocations: 15.89 kB / 1.328 GB, free: 14.67 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.658e-05/0.3489, allocations: 9.719 kB / 1.328 GB, free: 14.66 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.3491, allocations: 326.8 kB / 1.329 GB, free: 14.33 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.3492, allocations: 35.97 kB / 1.329 GB, free: 14.29 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001327/0.3494, allocations: 31.95 kB / 1.329 GB, free: 14.26 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002673/0.3496, allocations: 73.06 kB / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.3496, allocations: 0 / 1.329 GB, free: 14.19 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003245/0.35, allocations: 117.5 kB / 1.329 GB, free: 14.07 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.35, allocations: 13.64 kB / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.35, allocations: 0 / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.35, allocations: 0 / 1.329 GB, free: 14.05 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001221/0.3501, allocations: 15.98 kB / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.3501, allocations: 0 / 1.329 GB, free: 14.04 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.656e-05/0.3502, allocations: 15.98 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.967e-05/0.3502, allocations: 0 / 1.329 GB, free: 14.02 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 0.0001088/0.3503, allocations: 126.3 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.695e-05/0.3503, allocations: 4 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003727/0.3507, allocations: 109.5 kB / 1.329 GB, free: 13.76 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.3507, allocations: 0 / 1.329 GB, free: 13.76 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.3507, allocations: 4 kB / 1.329 GB, free: 13.76 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.3507, allocations: 3.984 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000177/0.3509, allocations: 144.6 kB / 1.329 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3509, allocations: 4 kB / 1.329 GB, free: 13.57 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.869e-05/0.351, allocations: 19.97 kB / 1.329 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.351, allocations: 0 / 1.329 GB, free: 13.55 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.351, allocations: 4 kB / 1.329 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.351, allocations: 0 / 1.329 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.351, allocations: 0 / 1.329 GB, free: 13.54 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003776/0.3514, allocations: 207.3 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.179e-05/0.3514, allocations: 7.953 kB / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.337e-05/0.3514, allocations: 0 / 1.33 GB, free: 13.32 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.3515, allocations: 15.98 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.483e-05/0.3516, allocations: 3.984 kB / 1.33 GB, free: 13.3 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.3516, allocations: 4 kB / 1.33 GB, free: 13.29 MB / 1.029 GB Notification: Performance of sorting global known variables: time 6.075e-05/0.3516, allocations: 91.27 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3516, allocations: 3.938 kB / 1.33 GB, free: 13.2 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002424/0.3519, allocations: 11.94 kB / 1.33 GB, free: 13.19 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.000728/0.3526, allocations: 0.7319 MB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003385/0.353, allocations: 79.86 kB / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.353, allocations: 0 / 1.331 GB, free: 12.35 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001562/0.3531, allocations: 47.89 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.3534, allocations: 4 kB / 1.331 GB, free: 12.3 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001904/0.3553, allocations: 1.431 MB / 1.332 GB, free: 10.79 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.448e-05/0.3554, allocations: 71.33 kB / 1.332 GB, free: 10.7 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.451e-05/0.3554, allocations: 11.89 kB / 1.332 GB, free: 10.69 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.817e-05/0.3555, allocations: 19.48 kB / 1.332 GB, free: 10.67 MB / 1.029 GB Notification: Performance of SimCode: time 3.1e-07/0.3555, allocations: 0 / 1.332 GB, free: 10.67 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0277/0.3832, allocations: 2.398 MB / 1.334 GB, free: 8.414 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/11.98, allocations: 11.92 kB / 1.335 GB, free: 8.402 MB / 1.029 GB " [Timeout remaining time 288] (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: 18.78942966181785]