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.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.001825/0.001825, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 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.002653/0.002653, allocations: 213.5 kB / 22.24 MB, free: 4.855 MB / 14.72 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 1.517/1.517, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.255/3.255, allocations: 0.5107 GB / 0.8158 GB, free: 17.82 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002357/0.002357, allocations: 62.84 kB / 1.186 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.3658, allocations: 181.9 MB / 1.363 GB, free: 14.07 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001822/0.3676, allocations: 0.594 MB / 1.364 GB, free: 13.47 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0002702/0.3679, allocations: 39.83 kB / 1.364 GB, free: 13.43 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.187e-05/0.3679, allocations: 0 / 1.364 GB, free: 13.43 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.803e-05/0.3679, allocations: 0 / 1.364 GB, free: 13.43 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 3.295e-05/0.368, allocations: 4 kB / 1.364 GB, free: 13.43 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002028/0.3682, allocations: 15.92 kB / 1.364 GB, free: 13.41 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 6.732e-05/0.3682, allocations: 4 kB / 1.364 GB, free: 13.41 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.382e-05/0.3683, allocations: 3.984 kB / 1.364 GB, free: 13.41 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 2.112e-05/0.3683, allocations: 7.938 kB / 1.364 GB, free: 13.4 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 4.892e-05/0.3683, allocations: 3.984 kB / 1.364 GB, free: 13.39 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.368e-05/0.3684, allocations: 0 / 1.364 GB, free: 13.39 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.847e-05/0.3684, allocations: 23.98 kB / 1.364 GB, free: 13.37 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 3.545e-05/0.3685, allocations: 4 kB / 1.364 GB, free: 13.37 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 2.563e-05/0.3685, allocations: 3.938 kB / 1.364 GB, free: 13.36 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001137/0.3686, allocations: 32.12 kB / 1.364 GB, free: 13.33 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3686, allocations: 4 kB / 1.364 GB, free: 13.33 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.934e-06/0.3686, allocations: 0 / 1.364 GB, free: 13.33 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.3686, allocations: 0 / 1.364 GB, free: 13.33 MB / 1.061 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.0003741/0.369, allocations: 268.5 kB / 1.364 GB, free: 13.03 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.3691, allocations: 12.03 kB / 1.364 GB, free: 13.02 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.711e-05/0.3691, allocations: 34.75 kB / 1.364 GB, free: 12.97 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.651e-05/0.3691, allocations: 0.9375 kB / 1.364 GB, free: 12.97 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.599e-05/0.3692, allocations: 110.5 kB / 1.365 GB, free: 12.84 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.3692, allocations: 4.312 kB / 1.365 GB, free: 12.84 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.3692, allocations: 8.359 kB / 1.365 GB, free: 12.83 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001705/0.3694, allocations: 87.95 kB / 1.365 GB, free: 12.73 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.3694, allocations: 3.938 kB / 1.365 GB, free: 12.73 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.3694, allocations: 3.984 kB / 1.365 GB, free: 12.72 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.422e-05/0.3694, allocations: 4 kB / 1.365 GB, free: 12.72 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.053e-05/0.3695, allocations: 53.69 kB / 1.365 GB, free: 12.66 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000396/0.3699, allocations: 231.9 kB / 1.365 GB, free: 12.39 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 7.195e-05/0.37, allocations: 48.22 kB / 1.365 GB, free: 12.33 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.87e-05/0.37, allocations: 38.55 kB / 1.365 GB, free: 12.28 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 7.985e-06/0.37, allocations: 0 / 1.365 GB, free: 12.28 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.198e-05/0.3701, allocations: 38.61 kB / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 3.166e-06/0.3701, allocations: 4 kB / 1.365 GB, free: 12.23 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0002113/0.3703, allocations: 122.7 kB / 1.365 GB, free: 12.09 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.571e-05/0.3703, allocations: 85.11 kB / 1.365 GB, free: 11.98 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.535e-05/0.3704, allocations: 113.8 kB / 1.365 GB, free: 11.86 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.3705, allocations: 25.7 kB / 1.365 GB, free: 11.83 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.492e-05/0.3705, allocations: 103.9 kB / 1.365 GB, free: 11.73 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 9.948e-06/0.3705, allocations: 7.938 kB / 1.365 GB, free: 11.72 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.317e-05/0.3706, allocations: 21.72 kB / 1.366 GB, free: 11.69 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001386/0.3707, allocations: 318.8 kB / 1.366 GB, free: 11.37 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.687e-05/0.3708, allocations: 41.75 kB / 1.366 GB, free: 11.32 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.105e-05/0.3709, allocations: 92.69 kB / 1.366 GB, free: 11.2 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001322/0.371, allocations: 134.1 kB / 1.366 GB, free: 11.04 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.371, allocations: 0 / 1.366 GB, free: 11.04 MB / 1.061 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001852/0.3712, allocations: 148.8 kB / 1.366 GB, free: 10.87 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.532e-05/0.3712, allocations: 37.64 kB / 1.366 GB, free: 10.83 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.3712, allocations: 0 / 1.366 GB, free: 10.83 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.3712, allocations: 4 kB / 1.366 GB, free: 10.82 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.997e-05/0.3713, allocations: 11.98 kB / 1.366 GB, free: 10.81 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.3713, allocations: 4 kB / 1.366 GB, free: 10.81 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.583e-05/0.3714, allocations: 11.94 kB / 1.366 GB, free: 10.8 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.584e-05/0.3714, allocations: 7.938 kB / 1.366 GB, free: 10.79 MB / 1.061 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.0001138/0.3715, allocations: 151.7 kB / 1.366 GB, free: 10.62 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.407e-05/0.3715, allocations: 3.953 kB / 1.366 GB, free: 10.62 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.084e-05/0.3716, allocations: 11.47 kB / 1.366 GB, free: 10.6 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.3716, allocations: 0 / 1.366 GB, free: 10.6 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.3716, allocations: 0 / 1.366 GB, free: 10.6 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.3716, allocations: 0 / 1.366 GB, free: 10.6 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001476/0.3717, allocations: 124.7 kB / 1.367 GB, free: 10.44 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.3717, allocations: 0 / 1.367 GB, free: 10.44 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.3717, allocations: 0 / 1.367 GB, free: 10.44 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.3717, allocations: 4 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.912e-06/0.3717, allocations: 0 / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.3717, allocations: 4 kB / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3717, allocations: 0 / 1.367 GB, free: 10.43 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001599/0.3719, allocations: 190.9 kB / 1.367 GB, free: 10.21 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.189e-05/0.3719, allocations: 8 kB / 1.367 GB, free: 10.21 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.175e-05/0.3719, allocations: 0 / 1.367 GB, free: 10.21 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.332e-05/0.372, allocations: 3.938 kB / 1.367 GB, free: 10.2 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.147e-05/0.372, allocations: 11.92 kB / 1.367 GB, free: 10.19 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.458e-06/0.372, allocations: 0 / 1.367 GB, free: 10.19 MB / 1.061 GB Notification: Performance of sorting global known variables: time 6.138e-05/0.3721, allocations: 87.69 kB / 1.367 GB, free: 10.11 MB / 1.061 GB Notification: Performance of sort global known variables: time 8e-08/0.3721, allocations: 0 / 1.367 GB, free: 10.11 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002451/0.3723, allocations: 20.03 kB / 1.367 GB, free: 10.09 MB / 1.061 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.0005415/0.3728, allocations: 0.7236 MB / 1.368 GB, free: 9.324 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0001803/0.373, allocations: 134.7 kB / 1.368 GB, free: 9.168 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.373, allocations: 3.938 kB / 1.368 GB, free: 9.164 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 5.752e-05/0.3731, allocations: 85.11 kB / 1.368 GB, free: 9.062 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002099/0.3733, allocations: 8.578 kB / 1.368 GB, free: 9.055 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004418/0.3737, allocations: 168.1 kB / 1.368 GB, free: 8.844 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.372e-05/0.3738, allocations: 63.34 kB / 1.368 GB, free: 8.762 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.000105/0.3739, allocations: 11.98 kB / 1.368 GB, free: 8.75 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.746e-05/0.3739, allocations: 15.42 kB / 1.368 GB, free: 8.734 MB / 1.061 GB Notification: Performance of SimCode: time 2.81e-07/0.3739, allocations: 0 / 1.368 GB, free: 8.734 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02773/0.4017, allocations: 1.955 MB / 1.37 GB, free: 6.922 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.86, allocations: 6.844 kB / 1.37 GB, free: 6.918 MB / 1.061 GB " [Timeout remaining time 288] (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 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1) [Timeout 840.0] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.74113140720874]