Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration",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.005283/0.005283, allocations: 102.7 kB / 15.73 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001359/0.001359, allocations: 190.4 kB / 16.67 MB, free: 6.379 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.412/1.412, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.789/2.789, allocations: 461.9 MB / 0.7348 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 67.89 kB / 1.054 GB, free: 7.582 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3013/0.3026, allocations: 157.4 MB / 1.207 GB, free: 10.07 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001638/0.3043, allocations: 0.5798 MB / 1.208 GB, free: 9.492 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0002389/0.3046, allocations: 39.86 kB / 1.208 GB, free: 9.453 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.243e-05/0.3046, allocations: 3.938 kB / 1.208 GB, free: 9.449 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.706e-05/0.3046, allocations: 3.938 kB / 1.208 GB, free: 9.445 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.382e-05/0.3047, allocations: 8 kB / 1.208 GB, free: 9.438 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001846/0.3049, allocations: 11.98 kB / 1.208 GB, free: 9.426 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.376e-05/0.305, allocations: 11.98 kB / 1.208 GB, free: 9.414 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.477e-05/0.305, allocations: 0 / 1.208 GB, free: 9.414 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 1.676e-05/0.305, allocations: 0 / 1.208 GB, free: 9.414 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 3.83e-05/0.3051, allocations: 4 kB / 1.208 GB, free: 9.41 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/0.3051, allocations: 0 / 1.208 GB, free: 9.41 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.728e-05/0.3052, allocations: 15.98 kB / 1.208 GB, free: 9.395 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.887e-05/0.3052, allocations: 0 / 1.208 GB, free: 9.395 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.579e-05/0.3053, allocations: 11.94 kB / 1.208 GB, free: 9.383 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 9.461e-05/0.3054, allocations: 31.89 kB / 1.208 GB, free: 9.352 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.3054, allocations: 4 kB / 1.208 GB, free: 9.348 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3054, allocations: 0 / 1.208 GB, free: 9.348 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.614e-06/0.3054, allocations: 0 / 1.208 GB, free: 9.348 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003076/0.3057, allocations: 345.3 kB / 1.208 GB, free: 8.953 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.3057, allocations: 12.62 kB / 1.208 GB, free: 8.941 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.231e-05/0.3058, allocations: 34.69 kB / 1.208 GB, free: 8.898 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.218e-05/0.3058, allocations: 12.84 kB / 1.208 GB, free: 8.887 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.582e-05/0.3059, allocations: 164.6 kB / 1.209 GB, free: 8.688 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.3059, allocations: 4.312 kB / 1.209 GB, free: 8.684 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.288e-06/0.3059, allocations: 8.359 kB / 1.209 GB, free: 8.676 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001185/0.3061, allocations: 54.25 kB / 1.209 GB, free: 8.617 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-06/0.3061, allocations: 3.938 kB / 1.209 GB, free: 8.613 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.877e-06/0.3061, allocations: 4 kB / 1.209 GB, free: 8.609 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.524e-05/0.3061, allocations: 4 kB / 1.209 GB, free: 8.605 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.378e-05/0.3062, allocations: 27.92 kB / 1.209 GB, free: 8.578 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003094/0.3065, allocations: 264.8 kB / 1.209 GB, free: 8.27 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 4.573e-05/0.3066, allocations: 26.58 kB / 1.209 GB, free: 8.234 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.532e-05/0.3066, allocations: 8.797 kB / 1.209 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 7.805e-06/0.3066, allocations: 4.062 kB / 1.209 GB, free: 8.219 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.108e-05/0.3066, allocations: 30.56 kB / 1.209 GB, free: 8.18 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=1): time 1.252e-06/0.3066, allocations: 0 / 1.209 GB, free: 8.18 MB / 0.9669 GB Notification: Performance of matching and sorting (n=1): time 0.0001693/0.3068, allocations: 71.33 kB / 1.209 GB, free: 8.098 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.3069, allocations: 81.11 kB / 1.209 GB, free: 8 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.817e-05/0.3069, allocations: 114 kB / 1.209 GB, free: 7.879 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.623e-05/0.307, allocations: 25.7 kB / 1.209 GB, free: 7.848 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.973e-05/0.307, allocations: 107.8 kB / 1.209 GB, free: 7.738 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 7.875e-06/0.307, allocations: 3.906 kB / 1.209 GB, free: 7.734 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.016e-05/0.3071, allocations: 21.72 kB / 1.209 GB, free: 7.707 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.641e-05/0.3072, allocations: 318.8 kB / 1.21 GB, free: 7.387 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.046e-05/0.3072, allocations: 12 kB / 1.21 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.853e-05/0.3073, allocations: 67.16 kB / 1.21 GB, free: 7.285 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001042/0.3074, allocations: 130.1 kB / 1.21 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3074, allocations: 0 / 1.21 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001484/0.3076, allocations: 115.2 kB / 1.21 GB, free: 6.996 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.044e-05/0.3076, allocations: 33.95 kB / 1.21 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.3076, allocations: 8 kB / 1.21 GB, free: 6.949 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.3076, allocations: 3.984 kB / 1.21 GB, free: 6.945 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.098e-05/0.3077, allocations: 15.98 kB / 1.21 GB, free: 6.93 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.3077, allocations: 3.938 kB / 1.21 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.226e-05/0.3078, allocations: 11.84 kB / 1.21 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.084e-05/0.3078, allocations: 19.94 kB / 1.21 GB, free: 6.895 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 1 * 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.347e-05/0.3079, allocations: 139.5 kB / 1.21 GB, free: 6.742 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.757e-05/0.3079, allocations: 4 kB / 1.21 GB, free: 6.738 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.441e-05/0.308, allocations: 7.531 kB / 1.21 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.308, allocations: 0 / 1.21 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.308, allocations: 0 / 1.21 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.308, allocations: 0 / 1.21 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001409/0.3081, allocations: 157.6 kB / 1.21 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3081, allocations: 4 kB / 1.21 GB, free: 6.52 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.3082, allocations: 0 / 1.21 GB, free: 6.52 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.3082, allocations: 3.938 kB / 1.21 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.332e-06/0.3082, allocations: 0 / 1.21 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.3082, allocations: 0 / 1.21 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3082, allocations: 3.938 kB / 1.21 GB, free: 6.512 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000119/0.3083, allocations: 177 kB / 1.211 GB, free: 6.316 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.387e-05/0.3083, allocations: 81.11 kB / 1.211 GB, free: 6.219 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.17e-05/0.3084, allocations: 0 / 1.211 GB, free: 6.219 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.281e-05/0.3084, allocations: 3.984 kB / 1.211 GB, free: 6.215 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.11e-05/0.3085, allocations: 0 / 1.211 GB, free: 6.215 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.64e-06/0.3085, allocations: 4 kB / 1.211 GB, free: 6.211 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.431e-05/0.3085, allocations: 95.2 kB / 1.211 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3085, allocations: 4.031 kB / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000262/0.3088, allocations: 8 kB / 1.211 GB, free: 6.105 MB / 0.9669 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0004138/0.3092, allocations: 0.7024 MB / 1.211 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001342/0.3094, allocations: 87.48 kB / 1.212 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3094, allocations: 0 / 1.212 GB, free: 5.273 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 3.515e-05/0.3094, allocations: 55.41 kB / 1.212 GB, free: 5.207 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002175/0.3096, allocations: 6.062 kB / 1.212 GB, free: 5.203 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004205/0.3101, allocations: 158.3 kB / 1.212 GB, free: 5.008 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002331/0.3103, allocations: 0.6768 MB / 1.212 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 8.819e-05/0.3104, allocations: 16.42 kB / 1.212 GB, free: 4.289 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.579e-05/0.3104, allocations: 11.44 kB / 1.212 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of SimCode: time 2.41e-07/0.3104, allocations: 0 / 1.212 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01704/0.3275, allocations: 1.457 MB / 1.214 GB, free: 2.965 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.58/7.908, allocations: 19.06 kB / 1.214 GB, free: 2.953 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches