Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001386/0.001386, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.00153/0.00153, allocations: 216.2 kB / 22.26 MB, free: 5.082 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.526/1.526, allocations: 230.6 MB / 256 MB, free: 8.035 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.403/3.403, allocations: 0.505 GB / 0.8101 GB, free: 22.02 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_latest_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_latest_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.002069/0.002069, allocations: 66.31 kB / 1.177 GB, free: 17.13 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3451/0.3471, allocations: 180.2 MB / 1.353 GB, free: 8.469 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002783/0.3499, allocations: 1.576 MB / 1.354 GB, free: 6.883 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.0003248/0.3503, allocations: 111.7 kB / 1.354 GB, free: 6.773 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.491e-05/0.3503, allocations: 0 / 1.354 GB, free: 6.773 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0001132/0.3504, allocations: 11.86 kB / 1.355 GB, free: 6.762 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 2.718e-05/0.3504, allocations: 11.92 kB / 1.355 GB, free: 6.75 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002312/0.3507, allocations: 35.91 kB / 1.355 GB, free: 6.715 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0001033/0.3508, allocations: 51.84 kB / 1.355 GB, free: 6.664 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.3509, allocations: 16.27 kB / 1.355 GB, free: 6.648 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 6.085e-05/0.3509, allocations: 31.91 kB / 1.355 GB, free: 6.617 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 6.583e-05/0.351, allocations: 27.91 kB / 1.355 GB, free: 6.59 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 1.511e-05/0.351, allocations: 4 kB / 1.355 GB, free: 6.586 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 6.086e-05/0.3511, allocations: 15.98 kB / 1.355 GB, free: 6.57 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 4.059e-05/0.3511, allocations: 15.92 kB / 1.355 GB, free: 6.555 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 4.083e-05/0.3512, allocations: 23.88 kB / 1.355 GB, free: 6.531 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0001272/0.3513, allocations: 63.67 kB / 1.355 GB, free: 6.469 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3513, allocations: 3.938 kB / 1.355 GB, free: 6.465 MB / 1.045 GB Notification: Performance of FrontEnd: time 3.075e-06/0.3513, allocations: 7.984 kB / 1.355 GB, free: 6.457 MB / 1.045 GB Notification: Performance of Transformations before backend: time 9.067e-06/0.3513, allocations: 0 / 1.355 GB, free: 6.457 MB / 1.045 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.0005264/0.3518, allocations: 302 kB / 1.355 GB, free: 6.129 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.3519, allocations: 12.03 kB / 1.355 GB, free: 6.117 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.156e-05/0.3519, allocations: 38.73 kB / 1.355 GB, free: 6.07 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.672e-05/0.3519, allocations: 8.891 kB / 1.355 GB, free: 6.062 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000157/0.3521, allocations: 130.4 kB / 1.355 GB, free: 5.91 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-06/0.3521, allocations: 384 / 1.355 GB, free: 5.91 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.644e-05/0.3521, allocations: 8.375 kB / 1.355 GB, free: 5.902 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000287/0.3524, allocations: 94.08 kB / 1.355 GB, free: 5.805 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.3524, allocations: 3.938 kB / 1.355 GB, free: 5.801 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.587e-06/0.3524, allocations: 0 / 1.355 GB, free: 5.801 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.503e-06/0.3524, allocations: 0 / 1.355 GB, free: 5.801 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003045/0.3527, allocations: 83.91 kB / 1.355 GB, free: 5.719 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005506/0.3533, allocations: 291.8 kB / 1.356 GB, free: 5.391 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002355/0.3535, allocations: 58.53 kB / 1.356 GB, free: 5.324 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001552/0.3537, allocations: 40.92 kB / 1.356 GB, free: 5.281 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 3.133e-05/0.3537, allocations: 0 / 1.356 GB, free: 5.281 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.256e-05/0.3537, allocations: 38.59 kB / 1.356 GB, free: 5.234 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/0.3537, allocations: 3.938 kB / 1.356 GB, free: 5.23 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.000541/0.3543, allocations: 149.5 kB / 1.356 GB, free: 5.078 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/0.3543, allocations: 51.41 kB / 1.356 GB, free: 5.016 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001003/0.3544, allocations: 113.8 kB / 1.356 GB, free: 4.895 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/0.3544, allocations: 25.7 kB / 1.356 GB, free: 4.863 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 5.7e-05/0.3545, allocations: 92.09 kB / 1.356 GB, free: 4.77 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.223e-05/0.3545, allocations: 15.88 kB / 1.356 GB, free: 4.754 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.716e-05/0.3546, allocations: 13.72 kB / 1.356 GB, free: 4.734 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001376/0.3547, allocations: 322.8 kB / 1.357 GB, free: 4.402 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001477/0.3548, allocations: 35.95 kB / 1.357 GB, free: 4.367 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001335/0.355, allocations: 35.95 kB / 1.357 GB, free: 4.332 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002735/0.3552, allocations: 80.72 kB / 1.357 GB, free: 4.25 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3552, allocations: 0 / 1.357 GB, free: 4.25 MB / 1.045 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003253/0.3556, allocations: 101.6 kB / 1.357 GB, free: 4.145 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.3556, allocations: 6.188 kB / 1.357 GB, free: 4.141 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.3556, allocations: 0 / 1.357 GB, free: 4.141 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.116e-05/0.3556, allocations: 0 / 1.357 GB, free: 4.141 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.3557, allocations: 27.97 kB / 1.357 GB, free: 4.113 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.3557, allocations: 0 / 1.357 GB, free: 4.113 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.799e-05/0.3558, allocations: 15.98 kB / 1.357 GB, free: 4.098 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.547e-05/0.3558, allocations: 0 / 1.357 GB, free: 4.098 MB / 1.045 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 9.027e-05/0.3559, allocations: 121.7 kB / 1.357 GB, free: 3.969 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.062e-05/0.356, allocations: 15.88 kB / 1.357 GB, free: 3.953 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003692/0.3563, allocations: 113.6 kB / 1.357 GB, free: 3.832 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.3563, allocations: 0 / 1.357 GB, free: 3.832 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.3563, allocations: 0 / 1.357 GB, free: 3.832 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.3563, allocations: 0 / 1.357 GB, free: 3.832 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003338/0.3567, allocations: 152.6 kB / 1.357 GB, free: 3.641 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3567, allocations: 0 / 1.357 GB, free: 3.641 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.836e-05/0.3568, allocations: 19.97 kB / 1.357 GB, free: 3.621 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3568, allocations: 0 / 1.357 GB, free: 3.621 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.672e-06/0.3568, allocations: 3.938 kB / 1.357 GB, free: 3.617 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.3568, allocations: 7.938 kB / 1.357 GB, free: 3.609 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.3568, allocations: 0 / 1.357 GB, free: 3.609 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003648/0.3571, allocations: 203.3 kB / 1.358 GB, free: 3.395 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 1.348e-05/0.3572, allocations: 7.953 kB / 1.358 GB, free: 3.387 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/0.3572, allocations: 4 kB / 1.358 GB, free: 3.383 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001046/0.3573, allocations: 15.98 kB / 1.358 GB, free: 3.367 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.819e-05/0.3573, allocations: 3.984 kB / 1.358 GB, free: 3.363 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-06/0.3573, allocations: 4 kB / 1.358 GB, free: 3.359 MB / 1.045 GB Notification: Performance of sorting global known variables: time 5.683e-05/0.3574, allocations: 91.27 kB / 1.358 GB, free: 3.27 MB / 1.045 GB Notification: Performance of sort global known variables: time 8e-08/0.3574, allocations: 0 / 1.358 GB, free: 3.27 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002326/0.3576, allocations: 11.94 kB / 1.358 GB, free: 3.258 MB / 1.045 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.0007304/0.3583, allocations: 0.7362 MB / 1.358 GB, free: 2.496 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0003428/0.3587, allocations: 79.95 kB / 1.358 GB, free: 2.418 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.3587, allocations: 0 / 1.358 GB, free: 2.418 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001481/0.3588, allocations: 39.95 kB / 1.358 GB, free: 2.379 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002906/0.3591, allocations: 8 kB / 1.358 GB, free: 2.371 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001961/0.3611, allocations: 1.426 MB / 1.36 GB, free: 0.8672 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003381/0.3614, allocations: 0.6924 MB / 1.361 GB, free: 152 kB / 1.045 GB Notification: Performance of simCode: alias equations: time 4.645e-05/0.3615, allocations: 11.98 kB / 1.361 GB, free: 140 kB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.219e-05/0.3615, allocations: 15.44 kB / 1.361 GB, free: 124 kB / 1.045 GB Notification: Performance of SimCode: time 4.21e-07/0.3615, allocations: 4 kB / 1.361 GB, free: 120 kB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02903/0.3905, allocations: 1.943 MB / 1.362 GB, free: 14.3 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.41, allocations: 15.42 kB / 1.362 GB, free: 14.29 MB / 1.061 GB " [Timeout remaining time 288] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.csv --start-time 0 --stop-time 1 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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.62612415700005]