Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: translateModel(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y",fileNamePrefix="Buildings_9_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_9_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.001561/0.001561, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001602/0.001602, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.385/1.385, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.369/2.369, allocations: 390.2 MB / 0.6646 GB, free: 416 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001364, allocations: 71.88 kB / 0.8125 GB, free: 14.43 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.783/0.7844, allocations: 140.4 MB / 0.9496 GB, free: 9.148 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001921/0.7863, allocations: 0.5801 MB / 0.9502 GB, free: 8.699 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002192/0.7866, allocations: 36.12 kB / 0.9502 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.117e-05/0.7866, allocations: 1.375 kB / 0.9502 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.311e-05/0.7866, allocations: 0 / 0.9502 GB, free: 8.672 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.32e-05/0.7867, allocations: 5.375 kB / 0.9502 GB, free: 8.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001988/0.7869, allocations: 12.11 kB / 0.9502 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.005e-05/0.787, allocations: 4.125 kB / 0.9502 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.48e-05/0.7871, allocations: 5.359 kB / 0.9502 GB, free: 8.656 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.056e-05/0.7871, allocations: 5.359 kB / 0.9502 GB, free: 8.652 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.078e-05/0.7871, allocations: 3.938 kB / 0.9502 GB, free: 8.648 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.37e-05/0.7871, allocations: 1.375 kB / 0.9502 GB, free: 8.648 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.935e-05/0.7872, allocations: 20.23 kB / 0.9502 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.207e-05/0.7873, allocations: 2.75 kB / 0.9502 GB, free: 8.637 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.682e-05/0.7873, allocations: 5.312 kB / 0.9503 GB, free: 8.633 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.888e-05/0.7874, allocations: 29.48 kB / 0.9503 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.7874, allocations: 0 / 0.9503 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.283e-06/0.7874, allocations: 0 / 0.9503 GB, free: 8.613 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.239e-06/0.7874, allocations: 0 / 0.9503 GB, free: 8.613 MB / 0.7169 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.0002696/0.7877, allocations: 358.8 kB / 0.9506 GB, free: 8.215 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.7877, allocations: 9.625 kB / 0.9506 GB, free: 8.215 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.538e-05/0.7878, allocations: 2.312 kB / 0.9506 GB, free: 8.215 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.496e-05/0.7878, allocations: 167.7 kB / 0.9508 GB, free: 8.016 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.7878, allocations: 4.359 kB / 0.9508 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.217e-06/0.7879, allocations: 1.75 kB / 0.9508 GB, free: 8.012 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001291/0.788, allocations: 62.81 kB / 0.9509 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.788, allocations: 192 / 0.9509 GB, free: 7.965 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.788, allocations: 5.312 kB / 0.9509 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.312e-05/0.788, allocations: 4.125 kB / 0.9509 GB, free: 7.961 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.726e-05/0.7881, allocations: 28.42 kB / 0.9509 GB, free: 7.949 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002855/0.7884, allocations: 266.6 kB / 0.9512 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 3.91e-05/0.7884, allocations: 17.33 kB / 0.9512 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.463e-05/0.7885, allocations: 10.23 kB / 0.9512 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.484e-06/0.7885, allocations: 5.359 kB / 0.9512 GB, free: 7.617 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.546e-05/0.7885, allocations: 34.55 kB / 0.9512 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.7885, allocations: 1.375 kB / 0.9512 GB, free: 7.574 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001677/0.7887, allocations: 69.22 kB / 0.9513 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.969e-05/0.7887, allocations: 77.11 kB / 0.9514 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.842e-05/0.7888, allocations: 115.2 kB / 0.9515 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.526e-06/0.7888, allocations: 33.81 kB / 0.9515 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.419e-05/0.7888, allocations: 98.83 kB / 0.9516 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 8.987e-06/0.7888, allocations: 9.156 kB / 0.9516 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.75e-05/0.7889, allocations: 25.45 kB / 0.9516 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.763e-05/0.7889, allocations: 315.9 kB / 0.9519 GB, free: 6.816 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.319e-05/0.789, allocations: 11.11 kB / 0.9519 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.32e-05/0.789, allocations: 73.61 kB / 0.952 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.627e-05/0.7891, allocations: 129.2 kB / 0.9521 GB, free: 6.582 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.7891, allocations: 3.938 kB / 0.9521 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001239/0.7892, allocations: 120.8 kB / 0.9523 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.767e-05/0.7893, allocations: 35.34 kB / 0.9523 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.7893, allocations: 1.469 kB / 0.9523 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.7893, allocations: 6.781 kB / 0.9523 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.889e-05/0.7894, allocations: 10.53 kB / 0.9523 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.7894, allocations: 6.844 kB / 0.9523 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.204e-05/0.7895, allocations: 12.91 kB / 0.9523 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.7895, allocations: 4.125 kB / 0.9523 GB, free: 6.434 MB / 0.7169 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.006e-05/0.7895, allocations: 145.1 kB / 0.9525 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.336e-05/0.7896, allocations: 1.406 kB / 0.9525 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.326e-05/0.7896, allocations: 10.19 kB / 0.9525 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.082e-06/0.7896, allocations: 4 kB / 0.9525 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.7896, allocations: 0 / 0.9525 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.7896, allocations: 1.469 kB / 0.9525 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001104/0.7897, allocations: 153 kB / 0.9526 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.7897, allocations: 0 / 0.9526 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.41e-07/0.7897, allocations: 1.188 kB / 0.9526 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.082e-06/0.7897, allocations: 0 / 0.9526 GB, free: 6.07 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-06/0.7898, allocations: 5.141 kB / 0.9526 GB, free: 6.066 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.7898, allocations: 5.062 kB / 0.9526 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.7898, allocations: 0 / 0.9526 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.636e-05/0.7899, allocations: 173 kB / 0.9528 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.104e-05/0.7899, allocations: 82.62 kB / 0.9529 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.7899, allocations: 1.406 kB / 0.9529 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.165e-05/0.79, allocations: 1.219 kB / 0.9529 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.201e-05/0.79, allocations: 1.344 kB / 0.9529 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.991e-06/0.79, allocations: 5.25 kB / 0.9529 GB, free: 5.781 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.148e-05/0.79, allocations: 86.52 kB / 0.953 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.79, allocations: 0 / 0.953 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002578/0.7903, allocations: 17.62 kB / 0.953 GB, free: 5.695 MB / 0.7169 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.0001358/0.7904, allocations: 107.7 kB / 0.9531 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000131/0.7906, allocations: 87.52 kB / 0.9532 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.7906, allocations: 0 / 0.9532 GB, free: 5.527 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.456e-05/0.7906, allocations: 58.98 kB / 0.9532 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002016/0.7908, allocations: 7.656 kB / 0.9532 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002088/0.791, allocations: 103 kB / 0.9533 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001075/0.7912, allocations: 0.6846 MB / 0.954 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 9.077e-05/0.7912, allocations: 10.83 kB / 0.954 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.271e-05/0.7913, allocations: 8.906 kB / 0.954 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.7913, allocations: 0 / 0.954 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of Templates: time 0.002651/0.7939, allocations: 0.5164 MB / 0.9545 GB, free: 4.371 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches