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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.006613/0.006613, allocations: 103.9 kB / 15.74 MB, free: 5.953 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.001351/0.001351, allocations: 188.9 kB / 16.67 MB, free: 5.883 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.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 4.145 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.602/2.602, allocations: 437 MB / 0.7105 GB, free: 4.91 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 71.88 kB / 1.018 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3286, allocations: 151.6 MB / 1.166 GB, free: 7.227 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.002094/0.3308, allocations: 0.5786 MB / 1.167 GB, free: 6.648 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0003014/0.3311, allocations: 35.88 kB / 1.167 GB, free: 6.613 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.755e-05/0.3311, allocations: 0 / 1.167 GB, free: 6.613 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.559e-05/0.3312, allocations: 8 kB / 1.167 GB, free: 6.605 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 3.979e-05/0.3313, allocations: 0 / 1.167 GB, free: 6.605 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002567/0.3315, allocations: 11.97 kB / 1.167 GB, free: 6.594 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001061/0.3317, allocations: 11.94 kB / 1.167 GB, free: 6.582 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 5.486e-05/0.3317, allocations: 3.984 kB / 1.167 GB, free: 6.578 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 2.559e-05/0.3318, allocations: 7.938 kB / 1.167 GB, free: 6.57 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.115e-05/0.3318, allocations: 3.938 kB / 1.167 GB, free: 6.566 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.529e-05/0.3318, allocations: 0 / 1.167 GB, free: 6.566 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001024/0.3319, allocations: 15.98 kB / 1.167 GB, free: 6.551 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.051e-05/0.332, allocations: 8 kB / 1.167 GB, free: 6.543 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.332e-05/0.332, allocations: 7.938 kB / 1.167 GB, free: 6.535 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001246/0.3322, allocations: 31.89 kB / 1.167 GB, free: 6.504 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 8.096e-06/0.3322, allocations: 4 kB / 1.167 GB, free: 6.5 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3322, allocations: 0 / 1.167 GB, free: 6.5 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.899e-06/0.3322, allocations: 0 / 1.167 GB, free: 6.5 MB / 0.92 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.0003855/0.3326, allocations: 341.3 kB / 1.167 GB, free: 6.109 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.3326, allocations: 12.02 kB / 1.167 GB, free: 6.098 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.557e-05/0.3327, allocations: 38.75 kB / 1.167 GB, free: 6.051 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.138e-05/0.3327, allocations: 4.844 kB / 1.167 GB, free: 6.047 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000101/0.3328, allocations: 163.2 kB / 1.167 GB, free: 5.852 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.3328, allocations: 4.375 kB / 1.167 GB, free: 5.848 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.3329, allocations: 4.375 kB / 1.167 GB, free: 5.844 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001543/0.333, allocations: 58.19 kB / 1.168 GB, free: 5.781 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.333, allocations: 3.938 kB / 1.168 GB, free: 5.777 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.3331, allocations: 0 / 1.168 GB, free: 5.777 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.456e-05/0.3331, allocations: 7.984 kB / 1.168 GB, free: 5.77 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.868e-05/0.3332, allocations: 23.98 kB / 1.168 GB, free: 5.746 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003546/0.3335, allocations: 264.9 kB / 1.168 GB, free: 5.438 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 6.508e-05/0.3336, allocations: 26.5 kB / 1.168 GB, free: 5.402 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.076e-05/0.3336, allocations: 8.922 kB / 1.168 GB, free: 5.391 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 6.903e-06/0.3336, allocations: 0 / 1.168 GB, free: 5.391 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.3337, allocations: 30.56 kB / 1.168 GB, free: 5.352 MB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.3337, allocations: 0 / 1.168 GB, free: 5.352 MB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.0001833/0.3339, allocations: 75.3 kB / 1.168 GB, free: 5.266 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.814e-05/0.3339, allocations: 81.23 kB / 1.168 GB, free: 5.168 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.081e-05/0.334, allocations: 110.4 kB / 1.168 GB, free: 5.051 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.541e-05/0.334, allocations: 25.7 kB / 1.168 GB, free: 5.02 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.61e-05/0.3341, allocations: 108 kB / 1.168 GB, free: 4.91 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 9.558e-06/0.3341, allocations: 7.891 kB / 1.168 GB, free: 4.902 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.284e-05/0.3342, allocations: 22.06 kB / 1.168 GB, free: 4.875 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001147/0.3343, allocations: 322.8 kB / 1.169 GB, free: 4.551 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.496e-05/0.3343, allocations: 7.984 kB / 1.169 GB, free: 4.543 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.997e-05/0.3344, allocations: 62.86 kB / 1.169 GB, free: 4.457 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001103/0.3345, allocations: 134.1 kB / 1.169 GB, free: 4.289 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.3345, allocations: 4 kB / 1.169 GB, free: 4.285 MB / 0.92 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001685/0.3347, allocations: 111.5 kB / 1.169 GB, free: 4.164 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.53e-05/0.3348, allocations: 41.61 kB / 1.169 GB, free: 4.117 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.3348, allocations: 4 kB / 1.169 GB, free: 4.113 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.3348, allocations: 0 / 1.169 GB, free: 4.113 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.172e-05/0.3349, allocations: 19.92 kB / 1.169 GB, free: 4.094 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/0.3349, allocations: 4.469 kB / 1.169 GB, free: 4.09 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.341e-05/0.335, allocations: 15.84 kB / 1.169 GB, free: 4.074 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.922e-05/0.335, allocations: 7.938 kB / 1.169 GB, free: 4.066 MB / 0.92 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.0001121/0.3351, allocations: 143.5 kB / 1.169 GB, free: 3.91 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.516e-05/0.3352, allocations: 0 / 1.169 GB, free: 3.91 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.007e-05/0.3352, allocations: 15.52 kB / 1.169 GB, free: 3.891 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.3352, allocations: 0 / 1.169 GB, free: 3.891 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3352, allocations: 4 kB / 1.169 GB, free: 3.887 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3352, allocations: 0 / 1.169 GB, free: 3.887 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001754/0.3354, allocations: 153.6 kB / 1.169 GB, free: 3.688 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.519e-06/0.3354, allocations: 4 kB / 1.169 GB, free: 3.684 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.82e-07/0.3354, allocations: 0 / 1.169 GB, free: 3.684 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.3354, allocations: 0 / 1.169 GB, free: 3.684 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-06/0.3354, allocations: 0 / 1.169 GB, free: 3.684 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.3354, allocations: 0 / 1.169 GB, free: 3.684 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3354, allocations: 4 kB / 1.169 GB, free: 3.68 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001478/0.3356, allocations: 169.2 kB / 1.169 GB, free: 3.492 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 4.381e-05/0.3356, allocations: 81.02 kB / 1.17 GB, free: 3.395 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.34e-05/0.3357, allocations: 0 / 1.17 GB, free: 3.395 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.884e-05/0.3357, allocations: 0 / 1.17 GB, free: 3.395 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.919e-05/0.3358, allocations: 8 kB / 1.17 GB, free: 3.387 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.639e-06/0.3358, allocations: 0 / 1.17 GB, free: 3.387 MB / 0.92 GB Notification: Performance of sorting global known variables: time 5.353e-05/0.3358, allocations: 103.2 kB / 1.17 GB, free: 3.285 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3358, allocations: 0 / 1.17 GB, free: 3.285 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002689/0.3361, allocations: 16 kB / 1.17 GB, free: 3.27 MB / 0.92 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.0005057/0.3366, allocations: 0.6985 MB / 1.17 GB, free: 2.539 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001694/0.3368, allocations: 87.36 kB / 1.17 GB, free: 2.441 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3368, allocations: 0 / 1.17 GB, free: 2.441 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 3.694e-05/0.3369, allocations: 59.34 kB / 1.17 GB, free: 2.371 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002349/0.3371, allocations: 4 kB / 1.17 GB, free: 2.367 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004537/0.3376, allocations: 146.4 kB / 1.171 GB, free: 2.184 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002585/0.3378, allocations: 0.6807 MB / 1.171 GB, free: 1.477 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001131/0.338, allocations: 12.55 kB / 1.171 GB, free: 1.465 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.311e-05/0.338, allocations: 15.44 kB / 1.171 GB, free: 1.449 MB / 0.92 GB Notification: Performance of SimCode: time 2.3e-07/0.338, allocations: 0 / 1.171 GB, free: 1.449 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01877/0.3568, allocations: 1.438 MB / 1.173 GB, free: 152 kB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.686/8.042, allocations: 8.375 kB / 1.173 GB, free: 148 kB / 0.92 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