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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.007118/0.007118, allocations: 96.92 kB / 15.73 MB, free: 6.484 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.002017/0.002017, allocations: 192.1 kB / 16.67 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.417/1.417, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.847/2.847, allocations: 482.4 MB / 0.7548 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 67.89 kB / 1.083 GB, free: 12.52 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2823, allocations: 162.2 MB / 1.241 GB, free: 10.19 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001534/0.2839, allocations: 0.5952 MB / 1.242 GB, free: 9.594 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.000214/0.2841, allocations: 43.81 kB / 1.242 GB, free: 9.551 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.677e-05/0.2841, allocations: 0 / 1.242 GB, free: 9.551 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.228e-05/0.2842, allocations: 0 / 1.242 GB, free: 9.551 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 2.664e-05/0.2842, allocations: 0 / 1.242 GB, free: 9.551 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001723/0.2844, allocations: 11.98 kB / 1.242 GB, free: 9.539 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 6.073e-05/0.2844, allocations: 8 kB / 1.242 GB, free: 9.531 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.48e-05/0.2845, allocations: 3.984 kB / 1.242 GB, free: 9.527 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 2.176e-05/0.2845, allocations: 8 kB / 1.242 GB, free: 9.52 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 3.57e-05/0.2846, allocations: 3.984 kB / 1.242 GB, free: 9.516 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.058e-05/0.2846, allocations: 3.938 kB / 1.242 GB, free: 9.512 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.717e-05/0.2846, allocations: 15.98 kB / 1.242 GB, free: 9.496 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.558e-05/0.2847, allocations: 4 kB / 1.242 GB, free: 9.492 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.205e-05/0.2847, allocations: 7.938 kB / 1.242 GB, free: 9.484 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 8.609e-05/0.2848, allocations: 19.92 kB / 1.242 GB, free: 9.465 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2848, allocations: 0 / 1.242 GB, free: 9.465 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.042e-06/0.2848, allocations: 0 / 1.242 GB, free: 9.465 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.316e-06/0.2848, allocations: 4 kB / 1.242 GB, free: 9.461 MB / 0.9981 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.0003527/0.2852, allocations: 361.1 kB / 1.243 GB, free: 9.051 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.2852, allocations: 8.031 kB / 1.243 GB, free: 9.043 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.425e-05/0.2852, allocations: 38.73 kB / 1.243 GB, free: 8.996 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.98e-05/0.2853, allocations: 0.9375 kB / 1.243 GB, free: 8.996 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.2854, allocations: 160.4 kB / 1.243 GB, free: 8.801 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.2854, allocations: 4.375 kB / 1.243 GB, free: 8.797 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.272e-06/0.2854, allocations: 384 / 1.243 GB, free: 8.797 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001212/0.2855, allocations: 62.19 kB / 1.243 GB, free: 8.73 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.2856, allocations: 7.938 kB / 1.243 GB, free: 8.723 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.811e-06/0.2856, allocations: 0 / 1.243 GB, free: 8.723 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.214e-05/0.2856, allocations: 7.984 kB / 1.243 GB, free: 8.715 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.708e-05/0.2857, allocations: 23.98 kB / 1.243 GB, free: 8.691 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003156/0.286, allocations: 264.8 kB / 1.243 GB, free: 8.383 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.142e-05/0.286, allocations: 22.58 kB / 1.243 GB, free: 8.352 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.943e-05/0.2861, allocations: 16.78 kB / 1.243 GB, free: 8.332 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 5.31e-06/0.2861, allocations: 4 kB / 1.243 GB, free: 8.328 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.491e-05/0.2861, allocations: 30.56 kB / 1.243 GB, free: 8.289 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.2861, allocations: 0 / 1.243 GB, free: 8.289 MB / 0.9981 GB Notification: Performance of matching and sorting (n=1): time 0.0001635/0.2863, allocations: 63.41 kB / 1.243 GB, free: 8.215 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.048e-05/0.2863, allocations: 77.11 kB / 1.243 GB, free: 8.121 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.967e-05/0.2864, allocations: 125.7 kB / 1.243 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.504e-05/0.2865, allocations: 25.7 kB / 1.243 GB, free: 7.957 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.847e-05/0.2865, allocations: 108.2 kB / 1.244 GB, free: 7.848 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 5.63e-06/0.2865, allocations: 0 / 1.244 GB, free: 7.848 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.46e-05/0.2866, allocations: 29.66 kB / 1.244 GB, free: 7.812 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001526/0.2867, allocations: 318.8 kB / 1.244 GB, free: 7.492 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.714e-05/0.2868, allocations: 15.92 kB / 1.244 GB, free: 7.477 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.101e-05/0.2868, allocations: 62.86 kB / 1.244 GB, free: 7.391 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001286/0.287, allocations: 130.1 kB / 1.244 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.287, allocations: 0 / 1.244 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001602/0.2871, allocations: 115.2 kB / 1.244 GB, free: 7.102 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.611e-05/0.2872, allocations: 33.7 kB / 1.244 GB, free: 7.062 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.2872, allocations: 0 / 1.244 GB, free: 7.062 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.205e-05/0.2872, allocations: 4 kB / 1.244 GB, free: 7.059 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.055e-05/0.2873, allocations: 12.19 kB / 1.244 GB, free: 7.047 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.2873, allocations: 8 kB / 1.244 GB, free: 7.039 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.494e-05/0.2874, allocations: 15.88 kB / 1.244 GB, free: 7.023 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.472e-05/0.2874, allocations: 7.938 kB / 1.244 GB, free: 7.016 MB / 0.9981 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 9.948e-05/0.2875, allocations: 144.1 kB / 1.244 GB, free: 6.859 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.296e-05/0.2875, allocations: 0 / 1.244 GB, free: 6.859 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.026e-05/0.2875, allocations: 7.531 kB / 1.244 GB, free: 6.848 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.065e-06/0.2876, allocations: 0 / 1.244 GB, free: 6.848 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2876, allocations: 7.922 kB / 1.244 GB, free: 6.84 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.653e-06/0.2876, allocations: 4 kB / 1.244 GB, free: 6.836 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001572/0.2877, allocations: 153.6 kB / 1.245 GB, free: 6.637 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.2877, allocations: 3.984 kB / 1.245 GB, free: 6.633 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.6e-07/0.2877, allocations: 0 / 1.245 GB, free: 6.633 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.263e-06/0.2877, allocations: 0 / 1.245 GB, free: 6.633 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.2878, allocations: 8 kB / 1.245 GB, free: 6.625 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.031e-06/0.2878, allocations: 3.938 kB / 1.245 GB, free: 6.621 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.2878, allocations: 0 / 1.245 GB, free: 6.621 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001386/0.2879, allocations: 173.1 kB / 1.245 GB, free: 6.43 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.327e-05/0.288, allocations: 81.09 kB / 1.245 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.102e-05/0.288, allocations: 0 / 1.245 GB, free: 6.332 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.775e-05/0.2881, allocations: 7.938 kB / 1.245 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.222e-05/0.2881, allocations: 0 / 1.245 GB, free: 6.324 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.133e-06/0.2881, allocations: 4 kB / 1.245 GB, free: 6.32 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 5.628e-05/0.2881, allocations: 91.2 kB / 1.245 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.2882, allocations: 0 / 1.245 GB, free: 6.23 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002527/0.2884, allocations: 12 kB / 1.245 GB, free: 6.219 MB / 0.9981 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.0004732/0.2889, allocations: 0.7063 MB / 1.246 GB, free: 5.48 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000136/0.289, allocations: 87.33 kB / 1.246 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.289, allocations: 0.5312 kB / 1.246 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 4.5e-05/0.2891, allocations: 63.39 kB / 1.246 GB, free: 5.309 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001967/0.2893, allocations: 7.938 kB / 1.246 GB, free: 5.301 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003416/0.2896, allocations: 138 kB / 1.246 GB, free: 5.129 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003107/0.29, allocations: 0.6807 MB / 1.247 GB, free: 4.422 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 6.098e-05/0.29, allocations: 11.97 kB / 1.247 GB, free: 4.41 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.992e-05/0.2901, allocations: 15.44 kB / 1.247 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of SimCode: time 2.91e-07/0.2901, allocations: 0 / 1.247 GB, free: 4.395 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02089/0.311, allocations: 1.441 MB / 1.248 GB, free: 3.098 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.522/7.833, allocations: 13.7 kB / 1.248 GB, free: 3.086 MB / 0.9981 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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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