Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001346/0.001346, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.001418/0.001418, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.9212/0.9212, allocations: 177.1 MB / 202.7 MB, free: 5.754 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.743/1.743, allocations: 377.8 MB / 0.6221 GB, free: 8.684 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.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 0.981 GB, free: 2.559 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.273e-05/1.42e-05, allocations: 6.219 kB / 0.981 GB, free: 2.551 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001049/0.001063, allocations: 0.5995 MB / 0.9816 GB, free: 1.953 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.000193/0.001256, allocations: 35.88 kB / 0.9816 GB, free: 1.918 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.041e-05/0.001276, allocations: 0 / 0.9816 GB, free: 1.918 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.952e-05/0.001306, allocations: 0 / 0.9816 GB, free: 1.918 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 4.341e-05/0.001349, allocations: 8 kB / 0.9816 GB, free: 1.91 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001985/0.001548, allocations: 11.92 kB / 0.9816 GB, free: 1.898 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 6.954e-05/0.001617, allocations: 15.92 kB / 0.9817 GB, free: 1.883 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 3.487e-05/0.001652, allocations: 0 / 0.9817 GB, free: 1.883 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 3.244e-05/0.001685, allocations: 0 / 0.9817 GB, free: 1.883 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 4.485e-05/0.001729, allocations: 7.984 kB / 0.9817 GB, free: 1.875 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.891e-05/0.001748, allocations: 0 / 0.9817 GB, free: 1.875 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 7.59e-05/0.001824, allocations: 15.98 kB / 0.9817 GB, free: 1.859 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 2.744e-05/0.001852, allocations: 4 kB / 0.9817 GB, free: 1.855 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 1.964e-05/0.001871, allocations: 0 / 0.9817 GB, free: 1.855 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 9.392e-05/0.001965, allocations: 39.83 kB / 0.9817 GB, free: 1.816 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.001967, allocations: 4 kB / 0.9817 GB, free: 1.812 MB / 0.9323 GB Notification: Performance of FrontEnd: time 7.32e-07/0.001968, allocations: 0 / 0.9817 GB, free: 1.812 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.001972, allocations: 0 / 0.9817 GB, free: 1.812 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0002494/0.002221, allocations: 272.1 kB / 0.982 GB, free: 1.508 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.002258, allocations: 8.031 kB / 0.982 GB, free: 1.5 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.52e-05/0.002283, allocations: 38.75 kB / 0.982 GB, free: 1.453 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.309e-05/0.002306, allocations: 0.9375 kB / 0.982 GB, free: 1.453 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.321e-05/0.002359, allocations: 105.8 kB / 0.9821 GB, free: 1.324 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.027e-05/0.00237, allocations: 384 / 0.9821 GB, free: 1.324 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.226e-06/0.002378, allocations: 4.312 kB / 0.9821 GB, free: 1.32 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001194/0.002497, allocations: 87.94 kB / 0.9822 GB, free: 1.223 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.152e-06/0.002503, allocations: 192 / 0.9822 GB, free: 1.223 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.246e-06/0.002512, allocations: 4.375 kB / 0.9822 GB, free: 1.219 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.269e-05/0.002534, allocations: 8.125 kB / 0.9822 GB, free: 1.211 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.456e-05/0.002579, allocations: 49.69 kB / 0.9823 GB, free: 1.156 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002862/0.002865, allocations: 239.8 kB / 0.9825 GB, free: 0.8789 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 4.727e-05/0.002912, allocations: 48.2 kB / 0.9826 GB, free: 0.8164 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.012e-05/0.002932, allocations: 38.56 kB / 0.9826 GB, free: 0.7695 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 5.581e-06/0.002938, allocations: 0 / 0.9826 GB, free: 0.7695 MB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.002958, allocations: 34.56 kB / 0.9826 GB, free: 0.7266 MB / 0.9323 GB Notification: Performance of pre-optimization done (n=1): time 2.294e-06/0.00296, allocations: 7.984 kB / 0.9826 GB, free: 0.7188 MB / 0.9323 GB Notification: Performance of matching and sorting (n=1): time 0.000147/0.003107, allocations: 118.8 kB / 0.9827 GB, free: 0.5781 MB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.677e-05/0.003144, allocations: 77.11 kB / 0.9828 GB, free: 496 kB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.624e-05/0.00321, allocations: 121.8 kB / 0.9829 GB, free: 364 kB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 9.077e-06/0.003219, allocations: 29.64 kB / 0.983 GB, free: 328 kB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 4.417e-05/0.003263, allocations: 108 kB / 0.9831 GB, free: 216 kB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 7.164e-06/0.00327, allocations: 7.953 kB / 0.9831 GB, free: 208 kB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.88e-05/0.003299, allocations: 21.72 kB / 0.9831 GB, free: 180 kB / 0.9323 GB Notification: Performance of setup shared object (initialization): time 8.366e-05/0.003383, allocations: 314.8 kB / 0.9834 GB, free: 15.86 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.767e-05/0.003411, allocations: 45.62 kB / 0.9834 GB, free: 15.81 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.556e-05/0.003456, allocations: 84.69 kB / 0.9835 GB, free: 15.7 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.287e-05/0.003529, allocations: 130.1 kB / 0.9836 GB, free: 15.53 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.003531, allocations: 0 / 0.9836 GB, free: 15.53 MB / 0.948 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000103/0.003634, allocations: 152.9 kB / 0.9838 GB, free: 15.36 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 2.835e-05/0.003662, allocations: 29.7 kB / 0.9838 GB, free: 15.33 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.003669, allocations: 4 kB / 0.9838 GB, free: 15.32 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.003681, allocations: 3.938 kB / 0.9838 GB, free: 15.32 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.826e-05/0.003739, allocations: 15.98 kB / 0.9838 GB, free: 15.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.833e-06/0.003746, allocations: 4.469 kB / 0.9838 GB, free: 15.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.393e-05/0.0038, allocations: 7.938 kB / 0.9839 GB, free: 15.29 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.003813, allocations: 8 kB / 0.9839 GB, free: 15.29 MB / 0.948 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 6.389e-05/0.003877, allocations: 151.7 kB / 0.984 GB, free: 15.12 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.284e-05/0.00389, allocations: 7.953 kB / 0.984 GB, free: 15.11 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.965e-06/0.003898, allocations: 3.469 kB / 0.984 GB, free: 15.11 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.352e-06/0.003899, allocations: 0 / 0.984 GB, free: 15.11 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.003906, allocations: 8 kB / 0.984 GB, free: 15.11 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.003908, allocations: 0 / 0.984 GB, free: 15.11 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.139e-05/0.003999, allocations: 128.7 kB / 0.9841 GB, free: 14.94 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.004, allocations: 0 / 0.9841 GB, free: 14.94 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.91e-07/0.004001, allocations: 0 / 0.9841 GB, free: 14.94 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.31e-07/0.004001, allocations: 0 / 0.9841 GB, free: 14.94 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.331e-06/0.004006, allocations: 0 / 0.9841 GB, free: 14.94 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.004008, allocations: 8 kB / 0.9842 GB, free: 14.93 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.004008, allocations: 0 / 0.9842 GB, free: 14.93 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.213e-05/0.00409, allocations: 190.9 kB / 0.9843 GB, free: 14.71 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.781e-06/0.004096, allocations: 0 / 0.9843 GB, free: 14.71 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.004108, allocations: 4 kB / 0.9843 GB, free: 14.71 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.518e-05/0.004143, allocations: 0 / 0.9843 GB, free: 14.71 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.047e-05/0.004153, allocations: 3.984 kB / 0.9843 GB, free: 14.71 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.567e-06/0.004157, allocations: 11.88 kB / 0.9844 GB, free: 14.7 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.018e-05/0.004187, allocations: 91.27 kB / 0.9844 GB, free: 14.61 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.004187, allocations: 0 / 0.9844 GB, free: 14.61 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001657/0.004353, allocations: 12.03 kB / 0.9845 GB, free: 14.59 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 (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.0002888/0.004642, allocations: 0.7344 MB / 0.9852 GB, free: 13.82 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001109/0.004753, allocations: 142.7 kB / 0.9853 GB, free: 13.66 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.004754, allocations: 0 / 0.9853 GB, free: 13.66 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 2.725e-05/0.004781, allocations: 85.05 kB / 0.9854 GB, free: 13.55 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001428/0.004924, allocations: 8.578 kB / 0.9854 GB, free: 13.55 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002882/0.005212, allocations: 164.2 kB / 0.9856 GB, free: 13.34 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.637e-05/0.005259, allocations: 71.2 kB / 0.9856 GB, free: 13.25 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 5.278e-05/0.005311, allocations: 11.97 kB / 0.9856 GB, free: 13.24 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.167e-05/0.005333, allocations: 16.5 kB / 0.9856 GB, free: 13.22 MB / 0.948 GB Notification: Performance of SimCode: time 3.21e-07/0.005333, allocations: 0 / 0.9856 GB, free: 13.22 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01659/0.02192, allocations: 2.076 MB / 0.9877 GB, free: 11.29 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.89/6.912, allocations: 11.41 kB / 0.9877 GB, free: 11.29 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 10.913518849760294]