Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration,fileNamePrefix="Buildings_10_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.001373/0.001373, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001205/0.001205, allocations: 194.5 kB / 16.14 MB, free: 6.645 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.323/1.323, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.509/2.509, allocations: 437 MB / 0.7099 GB, free: 5.41 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001357/0.001357, allocations: 71.89 kB / 0.8687 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6479/0.6493, allocations: 151.6 MB / 1.017 GB, free: 2.805 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001731/0.6511, allocations: 0.6412 MB / 1.017 GB, free: 2.16 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.000236/0.6513, allocations: 43.81 kB / 1.017 GB, free: 2.117 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.493e-05/0.6514, allocations: 4 kB / 1.017 GB, free: 2.113 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.817e-05/0.6514, allocations: 0 / 1.017 GB, free: 2.113 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.114e-05/0.6514, allocations: 4 kB / 1.017 GB, free: 2.109 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001474/0.6516, allocations: 7.984 kB / 1.017 GB, free: 2.102 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 3.842e-05/0.6516, allocations: 7.984 kB / 1.017 GB, free: 2.094 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.634e-05/0.6517, allocations: 4 kB / 1.017 GB, free: 2.09 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.794e-05/0.6517, allocations: 3.984 kB / 1.017 GB, free: 2.086 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 1.935e-05/0.6517, allocations: 0 / 1.017 GB, free: 2.086 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.105e-05/0.6517, allocations: 0 / 1.017 GB, free: 2.086 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.947e-05/0.6518, allocations: 27.92 kB / 1.017 GB, free: 2.059 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.727e-05/0.6519, allocations: 11.94 kB / 1.017 GB, free: 2.047 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.38e-05/0.6519, allocations: 3.938 kB / 1.017 GB, free: 2.043 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 7.867e-05/0.652, allocations: 27.91 kB / 1.018 GB, free: 2.016 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.652, allocations: 0 / 1.018 GB, free: 2.016 MB / 0.7637 GB Notification: Performance of FrontEnd: time 6.91e-07/0.652, allocations: 0 / 1.018 GB, free: 2.016 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.637e-06/0.652, allocations: 0 / 1.018 GB, free: 2.016 MB / 0.7637 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.0002943/0.6523, allocations: 355.3 kB / 1.018 GB, free: 1.613 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.6523, allocations: 8.031 kB / 1.018 GB, free: 1.605 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.023e-05/0.6524, allocations: 38.73 kB / 1.018 GB, free: 1.559 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.198e-05/0.6524, allocations: 4.938 kB / 1.018 GB, free: 1.555 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.665e-05/0.6525, allocations: 162.6 kB / 1.018 GB, free: 1.359 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.577e-06/0.6525, allocations: 4.375 kB / 1.018 GB, free: 1.355 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.963e-06/0.6525, allocations: 384 / 1.018 GB, free: 1.355 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001097/0.6526, allocations: 54.25 kB / 1.018 GB, free: 1.297 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.145e-06/0.6526, allocations: 7.875 kB / 1.018 GB, free: 1.289 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.384e-06/0.6526, allocations: 0 / 1.018 GB, free: 1.289 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.214e-05/0.6527, allocations: 7.984 kB / 1.018 GB, free: 1.281 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.143e-05/0.6527, allocations: 23.98 kB / 1.018 GB, free: 1.258 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002742/0.653, allocations: 268.8 kB / 1.018 GB, free: 0.9453 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 3.666e-05/0.653, allocations: 22.52 kB / 1.018 GB, free: 0.9141 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.477e-05/0.6531, allocations: 8.844 kB / 1.018 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 3.697e-06/0.6531, allocations: 0 / 1.018 GB, free: 0.9023 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.279e-05/0.6531, allocations: 38.48 kB / 1.018 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=1): time 7.62e-07/0.6531, allocations: 0 / 1.018 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of matching and sorting (n=1): time 0.000143/0.6532, allocations: 71.47 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.801e-05/0.6533, allocations: 77.11 kB / 1.019 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.356e-05/0.6534, allocations: 129.7 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.188e-05/0.6534, allocations: 25.7 kB / 1.019 GB, free: 0.5117 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 4.104e-05/0.6534, allocations: 99.86 kB / 1.019 GB, free: 420 kB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 8.386e-06/0.6534, allocations: 7.938 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.345e-05/0.6535, allocations: 21.7 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 8.614e-05/0.6536, allocations: 322.8 kB / 1.019 GB, free: 52 kB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.198e-05/0.6536, allocations: 12.11 kB / 1.019 GB, free: 40 kB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.821e-05/0.6537, allocations: 62.8 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001004/0.6538, allocations: 130.2 kB / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.6538, allocations: 3.938 kB / 1.019 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001317/0.6539, allocations: 119.2 kB / 1.019 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.636e-05/0.654, allocations: 33.7 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.654, allocations: 0 / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.654, allocations: 4 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.697e-05/0.654, allocations: 11.94 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.6541, allocations: 7.984 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.135e-05/0.6541, allocations: 11.94 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.642e-05/0.6542, allocations: 7.938 kB / 1.02 GB, free: 15.57 MB / 0.7794 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 7.665e-05/0.6542, allocations: 144.3 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.611e-05/0.6543, allocations: 7.906 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.25e-05/0.6543, allocations: 11.52 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.72e-07/0.6543, allocations: 0 / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.6543, allocations: 4 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.532e-06/0.6543, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001241/0.6544, allocations: 153.6 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.6544, allocations: 0 / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-07/0.6544, allocations: 3.938 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.163e-06/0.6545, allocations: 0 / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/0.6545, allocations: 4 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.6545, allocations: 7.938 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.6545, allocations: 0 / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001014/0.6546, allocations: 165.2 kB / 1.02 GB, free: 15 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 2.91e-05/0.6546, allocations: 81.11 kB / 1.02 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.045e-05/0.6546, allocations: 0 / 1.02 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.575e-05/0.6547, allocations: 4 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.002e-05/0.6547, allocations: 0 / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.47e-06/0.6547, allocations: 8.031 kB / 1.02 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.038e-05/0.6548, allocations: 87.2 kB / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6548, allocations: 0 / 1.02 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002337/0.655, allocations: 16 kB / 1.02 GB, free: 14.79 MB / 0.7794 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.0004006/0.6554, allocations: 0.7063 MB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001099/0.6555, allocations: 83.33 kB / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.6555, allocations: 0 / 1.021 GB, free: 13.95 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.418e-05/0.6556, allocations: 59.39 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001967/0.6558, allocations: 14.47 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003272/0.6561, allocations: 140.9 kB / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002254/0.6564, allocations: 0.6809 MB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.21e-05/0.6564, allocations: 15.97 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.625e-05/0.6565, allocations: 11.38 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.6565, allocations: 0 / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01004/0.6665, allocations: 1.286 MB / 1.023 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001757/0.6667, allocations: 217.2 kB / 1.023 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.63/2.296, allocations: 0 / 1.023 GB, free: 11.55 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches