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.0008012/0.0008012, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0008464/0.0008464, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.9045/0.9045, allocations: 177.1 MB / 202.8 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.725/1.725, allocations: 377.8 MB / 0.6221 GB, free: 8.641 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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: Performance of FrontEnd - loaded program: time 1.903e-06/1.903e-06, allocations: 0 / 0.981 GB, free: 2.566 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.03e-05/2.22e-05, allocations: 2.281 kB / 0.981 GB, free: 2.562 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002894/0.002917, allocations: 1.541 MB / 0.9825 GB, free: 1.012 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0005231/0.00344, allocations: 123.5 kB / 0.9826 GB, free: 0.8906 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.876e-05/0.003498, allocations: 0 / 0.9826 GB, free: 0.8906 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.003634, allocations: 15.86 kB / 0.9826 GB, free: 0.875 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 3.084e-05/0.003665, allocations: 11.92 kB / 0.9826 GB, free: 0.8633 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002942/0.003959, allocations: 27.91 kB / 0.9826 GB, free: 0.8359 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 0.0001101/0.004069, allocations: 47.84 kB / 0.9827 GB, free: 0.7891 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.004199, allocations: 19.92 kB / 0.9827 GB, free: 0.7695 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 8.27e-05/0.004282, allocations: 39.89 kB / 0.9827 GB, free: 0.7305 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 7.205e-05/0.004354, allocations: 23.97 kB / 0.9828 GB, free: 0.707 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.966e-05/0.004373, allocations: 7.938 kB / 0.9828 GB, free: 0.6992 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 7.033e-05/0.004444, allocations: 15.98 kB / 0.9828 GB, free: 0.6836 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 4.481e-05/0.004489, allocations: 12 kB / 0.9828 GB, free: 0.6719 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 3.382e-05/0.004522, allocations: 19.91 kB / 0.9828 GB, free: 0.6523 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001577/0.00468, allocations: 59.8 kB / 0.9829 GB, free: 0.5938 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.004683, allocations: 4 kB / 0.9829 GB, free: 0.5898 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.303e-06/0.004684, allocations: 0 / 0.9829 GB, free: 0.5898 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.879e-06/0.004689, allocations: 0 / 0.9829 GB, free: 0.5898 MB / 0.9323 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.0004964/0.005186, allocations: 298.1 kB / 0.9832 GB, free: 272 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 4.512e-05/0.005231, allocations: 8.031 kB / 0.9832 GB, free: 264 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.945e-05/0.00527, allocations: 42.75 kB / 0.9832 GB, free: 212 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.563e-05/0.005306, allocations: 12.89 kB / 0.9832 GB, free: 200 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001693/0.005475, allocations: 137.5 kB / 0.9834 GB, free: 36 kB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.005486, allocations: 384 / 0.9834 GB, free: 36 kB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.342e-05/0.005499, allocations: 4.375 kB / 0.9834 GB, free: 32 kB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002794/0.005779, allocations: 86.22 kB / 0.9834 GB, free: 15.94 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.00579, allocations: 4.188 kB / 0.9834 GB, free: 15.93 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.252e-05/0.005802, allocations: 4.312 kB / 0.9834 GB, free: 15.93 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.005811, allocations: 8.109 kB / 0.9835 GB, free: 15.92 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000235/0.006046, allocations: 87.84 kB / 0.9835 GB, free: 15.84 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005021/0.006548, allocations: 283.8 kB / 0.9838 GB, free: 15.52 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001673/0.006715, allocations: 58.56 kB / 0.9839 GB, free: 15.45 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.006831, allocations: 48.91 kB / 0.9839 GB, free: 15.4 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 3.827e-05/0.006869, allocations: 0 / 0.9839 GB, free: 15.4 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.006895, allocations: 30.56 kB / 0.9839 GB, free: 15.36 MB / 0.948 GB Notification: Performance of pre-optimization done (n=3): time 1.463e-06/0.006896, allocations: 0 / 0.9839 GB, free: 15.36 MB / 0.948 GB Notification: Performance of matching and sorting (n=3): time 0.0004557/0.007352, allocations: 137.6 kB / 0.9841 GB, free: 15.22 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.485e-05/0.007397, allocations: 55.34 kB / 0.9841 GB, free: 15.15 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.522e-05/0.007492, allocations: 113.8 kB / 0.9842 GB, free: 15.03 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.007509, allocations: 29.69 kB / 0.9843 GB, free: 15 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 5.283e-05/0.007562, allocations: 92.09 kB / 0.9843 GB, free: 14.9 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 2.368e-05/0.007586, allocations: 11.89 kB / 0.9844 GB, free: 14.89 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.877e-05/0.007624, allocations: 13.72 kB / 0.9844 GB, free: 14.87 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.007764, allocations: 322.8 kB / 0.9847 GB, free: 14.55 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.007877, allocations: 31.95 kB / 0.9847 GB, free: 14.52 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.161e-05/0.007949, allocations: 35.97 kB / 0.9847 GB, free: 14.48 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001489/0.008098, allocations: 76.72 kB / 0.9848 GB, free: 14.4 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.008101, allocations: 0 / 0.9848 GB, free: 14.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001845/0.008285, allocations: 109.6 kB / 0.9849 GB, free: 14.29 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.0083, allocations: 14.91 kB / 0.9849 GB, free: 14.28 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.008306, allocations: 0 / 0.9849 GB, free: 14.28 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.008319, allocations: 0 / 0.9849 GB, free: 14.28 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.555e-05/0.008405, allocations: 15.98 kB / 0.985 GB, free: 14.26 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.00841, allocations: 0 / 0.985 GB, free: 14.26 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.896e-05/0.008448, allocations: 11.97 kB / 0.985 GB, free: 14.25 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.194e-05/0.00847, allocations: 4 kB / 0.985 GB, free: 14.25 MB / 0.948 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.947e-05/0.00854, allocations: 121.8 kB / 0.9851 GB, free: 14.12 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.673e-05/0.008557, allocations: 7.891 kB / 0.9851 GB, free: 14.11 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002268/0.008783, allocations: 113.6 kB / 0.9852 GB, free: 13.99 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.008786, allocations: 0 / 0.9852 GB, free: 13.99 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.008792, allocations: 0 / 0.9852 GB, free: 13.99 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.008795, allocations: 0 / 0.9852 GB, free: 13.99 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001278/0.008923, allocations: 148.7 kB / 0.9853 GB, free: 13.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.008924, allocations: 4 kB / 0.9853 GB, free: 13.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.797e-05/0.008972, allocations: 15.92 kB / 0.9854 GB, free: 13.79 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.008975, allocations: 4 kB / 0.9854 GB, free: 13.78 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-06/0.008982, allocations: 4 kB / 0.9854 GB, free: 13.78 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.008984, allocations: 0 / 0.9854 GB, free: 13.78 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.008985, allocations: 3.938 kB / 0.9854 GB, free: 13.77 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002062/0.009191, allocations: 211.7 kB / 0.9856 GB, free: 13.55 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.556e-06/0.009199, allocations: 4 kB / 0.9856 GB, free: 13.55 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.087e-05/0.00921, allocations: 0 / 0.9856 GB, free: 13.55 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.36e-05/0.009264, allocations: 15.97 kB / 0.9856 GB, free: 13.53 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.761e-05/0.009302, allocations: 4 kB / 0.9856 GB, free: 13.53 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.122e-06/0.009308, allocations: 0 / 0.9856 GB, free: 13.53 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.86e-05/0.009346, allocations: 95.27 kB / 0.9857 GB, free: 13.43 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.009346, allocations: 0 / 0.9857 GB, free: 13.43 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001681/0.009514, allocations: 11.94 kB / 0.9857 GB, free: 13.42 MB / 0.948 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.0004818/0.009996, allocations: 0.7396 MB / 0.9864 GB, free: 12.65 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.000208/0.0102, allocations: 75.91 kB / 0.9865 GB, free: 12.58 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.513e-06/0.01021, allocations: 0 / 0.9865 GB, free: 12.58 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 8.19e-05/0.01029, allocations: 47.91 kB / 0.9865 GB, free: 12.53 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002562/0.01054, allocations: 3.984 kB / 0.9865 GB, free: 12.53 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.01185, allocations: 1.428 MB / 0.9879 GB, free: 11.02 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.488e-05/0.01191, allocations: 75.27 kB / 0.988 GB, free: 10.93 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 3.885e-05/0.01194, allocations: 4 kB / 0.988 GB, free: 10.92 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.209e-05/0.01199, allocations: 24.48 kB / 0.988 GB, free: 10.9 MB / 0.948 GB Notification: Performance of SimCode: time 4.8e-07/0.01199, allocations: 0 / 0.988 GB, free: 10.9 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01722/0.02921, allocations: 2.531 MB / 0.9905 GB, free: 8.512 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.772/6.801, allocations: 4.469 kB / 0.9905 GB, free: 8.512 MB / 0.948 GB " [Timeout remaining time 293] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.Average_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 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.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins/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: 10.796965144574642]