Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001567/0.001567, allocations: 193 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.433/1.433, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.362/2.362, allocations: 390.2 MB / 0.6647 GB, free: 280 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0014/0.0014, allocations: 67.89 kB / 0.8126 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6/0.6014, allocations: 140.4 MB / 0.9497 GB, free: 9.16 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002698/0.6041, allocations: 1.536 MB / 0.9512 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003045/0.6045, allocations: 109.7 kB / 0.9513 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.974e-05/0.6045, allocations: 3.938 kB / 0.9513 GB, free: 7.859 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001211/0.6047, allocations: 9.391 kB / 0.9513 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.694e-05/0.6047, allocations: 5.062 kB / 0.9513 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002372/0.6049, allocations: 31.23 kB / 0.9514 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 9.443e-05/0.605, allocations: 51.94 kB / 0.9514 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.6052, allocations: 28.59 kB / 0.9514 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.359e-05/0.6052, allocations: 33.3 kB / 0.9515 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.627e-05/0.6053, allocations: 29.22 kB / 0.9515 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.059e-05/0.6053, allocations: 4.688 kB / 0.9515 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.122e-05/0.6054, allocations: 7.625 kB / 0.9515 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 4.572e-05/0.6054, allocations: 24.38 kB / 0.9515 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.728e-05/0.6055, allocations: 25.61 kB / 0.9516 GB, free: 7.699 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001242/0.6056, allocations: 54.47 kB / 0.9516 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.6056, allocations: 5.375 kB / 0.9516 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.392e-06/0.6056, allocations: 0 / 0.9516 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.001e-06/0.6056, allocations: 0 / 0.9516 GB, free: 7.656 MB / 0.7169 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.0004736/0.6061, allocations: 379.2 kB / 0.952 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.6062, allocations: 9.031 kB / 0.952 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.291e-05/0.6062, allocations: 32.16 kB / 0.952 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.156e-05/0.6062, allocations: 11.92 kB / 0.952 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001384/0.6064, allocations: 195.4 kB / 0.9522 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.018e-05/0.6064, allocations: 2.312 kB / 0.9522 GB, free: 6.996 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.411e-05/0.6064, allocations: 7.594 kB / 0.9522 GB, free: 6.992 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002837/0.6067, allocations: 84.3 kB / 0.9523 GB, free: 6.934 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.054e-05/0.6067, allocations: 7.875 kB / 0.9523 GB, free: 6.926 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.104e-05/0.6068, allocations: 5.219 kB / 0.9523 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.6068, allocations: 1.031 kB / 0.9523 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003155/0.6071, allocations: 80.81 kB / 0.9524 GB, free: 6.887 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005145/0.6076, allocations: 328.7 kB / 0.9527 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002074/0.6078, allocations: 63.06 kB / 0.9528 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.608, allocations: 39.34 kB / 0.9528 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.333e-05/0.608, allocations: 2.344 kB / 0.9528 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.771e-05/0.608, allocations: 35.94 kB / 0.9528 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.6081, allocations: 0 / 0.9528 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005703/0.6086, allocations: 138 kB / 0.953 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.318e-05/0.6087, allocations: 56.44 kB / 0.953 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.908e-05/0.6088, allocations: 111.1 kB / 0.9531 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.228e-05/0.6088, allocations: 25.7 kB / 0.9532 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.088e-05/0.6088, allocations: 103.2 kB / 0.9533 GB, free: 6.059 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.637e-05/0.6089, allocations: 13.38 kB / 0.9533 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.631e-05/0.6089, allocations: 12.88 kB / 0.9533 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.797e-05/0.609, allocations: 323.9 kB / 0.9536 GB, free: 5.707 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001548/0.6092, allocations: 31.44 kB / 0.9536 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001418/0.6093, allocations: 34.2 kB / 0.9537 GB, free: 5.68 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002794/0.6096, allocations: 78.47 kB / 0.9537 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.6096, allocations: 0 / 0.9537 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003226/0.6099, allocations: 108.5 kB / 0.9538 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.61, allocations: 9.281 kB / 0.9538 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.61, allocations: 0 / 0.9538 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.61, allocations: 1.375 kB / 0.9538 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.6101, allocations: 14.23 kB / 0.9539 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.6101, allocations: 0 / 0.9539 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.905e-05/0.6102, allocations: 20.06 kB / 0.9539 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.78e-05/0.6102, allocations: 1.75 kB / 0.9539 GB, free: 5.547 MB / 0.7169 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.398e-05/0.6103, allocations: 116.2 kB / 0.954 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.864e-05/0.6103, allocations: 14.19 kB / 0.954 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003825/0.6107, allocations: 116 kB / 0.9541 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.6107, allocations: 1.406 kB / 0.9541 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.6108, allocations: 0 / 0.9541 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.636e-06/0.6108, allocations: 0 / 0.9541 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001491/0.6109, allocations: 182.3 kB / 0.9543 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.6109, allocations: 1.062 kB / 0.9543 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.696e-05/0.611, allocations: 18.27 kB / 0.9543 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.611, allocations: 1 kB / 0.9543 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.336e-06/0.611, allocations: 0 / 0.9543 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.6111, allocations: 1.062 kB / 0.9543 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.6111, allocations: 0 / 0.9543 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003713/0.6114, allocations: 207.5 kB / 0.9545 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.309e-05/0.6115, allocations: 82.33 kB / 0.9546 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.6115, allocations: 0.9375 kB / 0.9546 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001039/0.6116, allocations: 14.53 kB / 0.9546 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.281e-05/0.6116, allocations: 2.969 kB / 0.9546 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.553e-06/0.6117, allocations: 1.406 kB / 0.9546 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.427e-05/0.6117, allocations: 94.61 kB / 0.9547 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6117, allocations: 1.156 kB / 0.9547 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002252/0.6119, allocations: 16.19 kB / 0.9547 GB, free: 4.73 MB / 0.7169 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.0005305/0.6125, allocations: 0.741 MB / 0.9554 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003415/0.6128, allocations: 80.09 kB / 0.9555 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.6128, allocations: 0 / 0.9555 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001545/0.613, allocations: 39.47 kB / 0.9555 GB, free: 3.977 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.6133, allocations: 6.766 kB / 0.9556 GB, free: 3.973 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001519/0.6148, allocations: 1.42 MB / 0.9569 GB, free: 2.664 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001347/0.6149, allocations: 0.7022 MB / 0.9576 GB, free: 1.949 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.032e-05/0.615, allocations: 7.516 kB / 0.9576 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.72e-05/0.615, allocations: 14.94 kB / 0.9576 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.615, allocations: 0 / 0.9576 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01723/0.6323, allocations: 1.789 MB / 0.9594 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.917/8.549, allocations: 10.73 kB / 0.9594 GB, free: 0.9297 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Utilities.Math.Examples.Average_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Average_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches