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: translateModel(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration") translateModel(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00174/0.00174, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001798/0.001798, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.388/1.388, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.885/2.885, allocations: 472.7 MB / 0.7448 GB, free: 4.855 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 65.22 kB / 0.9116 GB, free: 33.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3253, allocations: 159.9 MB / 1.068 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001951/0.3273, allocations: 0.6473 MB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002267/0.3275, allocations: 43.86 kB / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.76e-05/0.3276, allocations: 0 / 1.068 GB, free: 10 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.386e-05/0.3276, allocations: 4 kB / 1.068 GB, free: 9.996 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.745e-05/0.3277, allocations: 0 / 1.068 GB, free: 9.996 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000188/0.3278, allocations: 8 kB / 1.068 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.457e-05/0.3279, allocations: 4 kB / 1.068 GB, free: 9.984 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.354e-05/0.328, allocations: 7.984 kB / 1.068 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.623e-05/0.328, allocations: 0 / 1.068 GB, free: 9.977 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.211e-05/0.328, allocations: 3.984 kB / 1.068 GB, free: 9.973 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.177e-05/0.328, allocations: 0 / 1.068 GB, free: 9.973 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 8.793e-05/0.3281, allocations: 23.98 kB / 1.068 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 3.006e-05/0.3282, allocations: 7.938 kB / 1.068 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.125e-05/0.3282, allocations: 11.94 kB / 1.068 GB, free: 9.93 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 8.324e-05/0.3283, allocations: 23.91 kB / 1.069 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.3283, allocations: 0 / 1.069 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3283, allocations: 0 / 1.069 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.3283, allocations: 0 / 1.069 GB, free: 9.906 MB / 0.8262 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.0006015/0.3289, allocations: 349.3 kB / 1.069 GB, free: 9.508 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.329, allocations: 12.03 kB / 1.069 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.711e-05/0.329, allocations: 0.9375 kB / 1.069 GB, free: 9.496 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000123/0.3291, allocations: 164.6 kB / 1.069 GB, free: 9.297 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.219e-05/0.3291, allocations: 4.375 kB / 1.069 GB, free: 9.293 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.3292, allocations: 8.359 kB / 1.069 GB, free: 9.285 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001261/0.3293, allocations: 54.25 kB / 1.069 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.942e-06/0.3293, allocations: 192 / 1.069 GB, free: 9.227 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.3293, allocations: 3.938 kB / 1.069 GB, free: 9.223 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.959e-05/0.3294, allocations: 15.86 kB / 1.069 GB, free: 9.207 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.998e-05/0.3294, allocations: 23.98 kB / 1.069 GB, free: 9.184 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003355/0.3298, allocations: 264.8 kB / 1.069 GB, free: 8.875 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.871e-05/0.3298, allocations: 18.58 kB / 1.069 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.905e-05/0.3298, allocations: 12.91 kB / 1.069 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 6.032e-06/0.3298, allocations: 0 / 1.069 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.3299, allocations: 30.56 kB / 1.069 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.3299, allocations: 3.938 kB / 1.069 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001673/0.33, allocations: 71.31 kB / 1.07 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.954e-05/0.3301, allocations: 77.11 kB / 1.07 GB, free: 8.613 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.319e-05/0.3302, allocations: 118 kB / 1.07 GB, free: 8.488 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.3302, allocations: 25.7 kB / 1.07 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.175e-05/0.3303, allocations: 107.7 kB / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.873e-06/0.3303, allocations: 0 / 1.07 GB, free: 8.348 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.741e-05/0.3304, allocations: 33.61 kB / 1.07 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.3305, allocations: 322.8 kB / 1.07 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.567e-05/0.3305, allocations: 7.984 kB / 1.07 GB, free: 7.977 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.184e-05/0.3306, allocations: 75.16 kB / 1.07 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000113/0.3307, allocations: 126.2 kB / 1.07 GB, free: 7.719 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.3307, allocations: 4 kB / 1.07 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001932/0.3309, allocations: 115.2 kB / 1.07 GB, free: 7.59 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.197e-05/0.331, allocations: 33.95 kB / 1.071 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.331, allocations: 4 kB / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.331, allocations: 0 / 1.071 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001624/0.3312, allocations: 15.94 kB / 1.071 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.392e-05/0.3312, allocations: 7.984 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.984e-05/0.3313, allocations: 11.91 kB / 1.071 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.742e-05/0.3313, allocations: 4 kB / 1.071 GB, free: 7.508 MB / 0.8262 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 0.0001114/0.3314, allocations: 145.2 kB / 1.071 GB, free: 7.352 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.023e-05/0.3314, allocations: 4 kB / 1.071 GB, free: 7.348 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.844e-05/0.3315, allocations: 15.52 kB / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.3315, allocations: 0 / 1.071 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3315, allocations: 4 kB / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.096e-06/0.3315, allocations: 0 / 1.071 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002112/0.3317, allocations: 153.6 kB / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.3317, allocations: 0 / 1.071 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.3317, allocations: 3.938 kB / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.3317, allocations: 0 / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.3317, allocations: 0 / 1.071 GB, free: 7.121 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.887e-06/0.3317, allocations: 7.938 kB / 1.071 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3317, allocations: 4 kB / 1.071 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001726/0.3319, allocations: 175.3 kB / 1.071 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 8.355e-05/0.332, allocations: 81.02 kB / 1.071 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.332, allocations: 0 / 1.071 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.423e-05/0.3321, allocations: 0 / 1.071 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.42e-05/0.3321, allocations: 8 kB / 1.071 GB, free: 6.812 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.148e-06/0.3321, allocations: 0 / 1.071 GB, free: 6.812 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.853e-05/0.3322, allocations: 87.27 kB / 1.071 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3322, allocations: 4.031 kB / 1.071 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002434/0.3324, allocations: 15.94 kB / 1.071 GB, free: 6.707 MB / 0.8262 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.0001838/0.3326, allocations: 107.2 kB / 1.071 GB, free: 6.594 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001368/0.3328, allocations: 91.27 kB / 1.071 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3328, allocations: 0 / 1.071 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.863e-05/0.3328, allocations: 55.91 kB / 1.071 GB, free: 6.426 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000207/0.333, allocations: 8 kB / 1.071 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002721/0.3333, allocations: 120.9 kB / 1.072 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003243/0.3336, allocations: 0.6781 MB / 1.072 GB, free: 5.57 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.98e-05/0.3337, allocations: 11.98 kB / 1.072 GB, free: 5.559 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.67e-05/0.3337, allocations: 7.438 kB / 1.072 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3338, allocations: 4 kB / 1.072 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of Templates: time 0.003449/0.3372, allocations: 0.5192 MB / 1.073 GB, free: 5.035 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.makefile (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 & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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