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.001426/0.001426, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001624/0.001624, allocations: 195.9 kB / 16.25 MB, free: 6.629 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.521/1.521, allocations: 222.9 MB / 239.9 MB, free: 4.523 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.472/2.472, allocations: 390.2 MB / 0.6643 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.00143, allocations: 63.91 kB / 0.812 GB, free: 14.73 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8245/0.8259, allocations: 140.4 MB / 0.9491 GB, free: 9.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.00198/0.8279, allocations: 0.6521 MB / 0.9497 GB, free: 8.602 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002546/0.8282, allocations: 36.12 kB / 0.9498 GB, free: 8.574 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.152e-05/0.8282, allocations: 0 / 0.9498 GB, free: 8.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.456e-05/0.8283, allocations: 1.375 kB / 0.9498 GB, free: 8.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.247e-05/0.8283, allocations: 0 / 0.9498 GB, free: 8.574 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002392/0.8286, allocations: 13.58 kB / 0.9498 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.223e-05/0.8287, allocations: 6.891 kB / 0.9498 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.579e-05/0.8287, allocations: 6.562 kB / 0.9498 GB, free: 8.559 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 2.622e-05/0.8288, allocations: 5.156 kB / 0.9498 GB, free: 8.555 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.38e-05/0.8288, allocations: 1 kB / 0.9498 GB, free: 8.555 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.35e-05/0.8288, allocations: 0 / 0.9498 GB, free: 8.555 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001035/0.8289, allocations: 20.98 kB / 0.9498 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.604e-05/0.829, allocations: 2.281 kB / 0.9498 GB, free: 8.543 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.634e-05/0.829, allocations: 5.219 kB / 0.9498 GB, free: 8.539 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001085/0.8291, allocations: 33.77 kB / 0.9499 GB, free: 8.516 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.8291, allocations: 0 / 0.9499 GB, free: 8.516 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.893e-06/0.8291, allocations: 1.094 kB / 0.9499 GB, free: 8.516 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.8291, allocations: 0 / 0.9499 GB, free: 8.516 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.0003242/0.8295, allocations: 361.8 kB / 0.9502 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/0.8295, allocations: 8.844 kB / 0.9502 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.569e-05/0.8296, allocations: 2.25 kB / 0.9502 GB, free: 8.113 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.754e-05/0.8296, allocations: 163.6 kB / 0.9504 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/0.8296, allocations: 384 / 0.9504 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.572e-05/0.8297, allocations: 2.5 kB / 0.9504 GB, free: 7.918 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001567/0.8298, allocations: 54.19 kB / 0.9504 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.8298, allocations: 192 / 0.9504 GB, free: 7.879 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.062e-05/0.8298, allocations: 5.062 kB / 0.9504 GB, free: 7.875 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.529e-05/0.8299, allocations: 16.48 kB / 0.9505 GB, free: 7.863 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.843e-05/0.8299, allocations: 28.64 kB / 0.9505 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003031/0.8303, allocations: 266 kB / 0.9507 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.853e-05/0.8303, allocations: 20.94 kB / 0.9508 GB, free: 7.531 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.723e-05/0.8303, allocations: 11.72 kB / 0.9508 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 7.153e-06/0.8304, allocations: 0 / 0.9508 GB, free: 7.52 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.971e-05/0.8304, allocations: 35.78 kB / 0.9508 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=1): time 9.31e-07/0.8304, allocations: 0 / 0.9508 GB, free: 7.477 MB / 0.7169 GB Notification: Performance of matching and sorting (n=1): time 0.0001668/0.8306, allocations: 77.89 kB / 0.9509 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.71e-05/0.8306, allocations: 77.11 kB / 0.951 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.733e-05/0.8307, allocations: 114.5 kB / 0.9511 GB, free: 7.195 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.007e-06/0.8307, allocations: 26.92 kB / 0.9511 GB, free: 7.164 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.463e-05/0.8307, allocations: 98.36 kB / 0.9512 GB, free: 7.066 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 9.799e-06/0.8307, allocations: 13.02 kB / 0.9512 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.52e-05/0.8308, allocations: 25.41 kB / 0.9512 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.233e-05/0.8308, allocations: 319.9 kB / 0.9515 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.525e-05/0.8309, allocations: 14.77 kB / 0.9515 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.743e-05/0.8309, allocations: 62.3 kB / 0.9516 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.666e-05/0.831, allocations: 128.5 kB / 0.9517 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.831, allocations: 4 kB / 0.9517 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000144/0.8312, allocations: 116.2 kB / 0.9518 GB, free: 6.391 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.611e-05/0.8312, allocations: 32.08 kB / 0.9519 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.8312, allocations: 2.062 kB / 0.9519 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/0.8312, allocations: 1.719 kB / 0.9519 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.042e-05/0.8313, allocations: 15.08 kB / 0.9519 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.8313, allocations: 6.656 kB / 0.9519 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.338e-05/0.8314, allocations: 15.59 kB / 0.9519 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.773e-05/0.8314, allocations: 6.594 kB / 0.9519 GB, free: 6.34 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 9.567e-05/0.8315, allocations: 140.5 kB / 0.952 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.56e-05/0.8316, allocations: 1.5 kB / 0.952 GB, free: 6.191 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.732e-05/0.8316, allocations: 12.83 kB / 0.9521 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.654e-06/0.8316, allocations: 1.062 kB / 0.9521 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.8316, allocations: 0 / 0.9521 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.8316, allocations: 1.156 kB / 0.9521 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001189/0.8317, allocations: 153.3 kB / 0.9522 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.8317, allocations: 4 kB / 0.9522 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/0.8318, allocations: 1.469 kB / 0.9522 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-06/0.8318, allocations: 0 / 0.9522 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.874e-06/0.8318, allocations: 1.188 kB / 0.9522 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.8318, allocations: 0 / 0.9522 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.8318, allocations: 1.562 kB / 0.9522 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.216e-05/0.8319, allocations: 172.2 kB / 0.9524 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.988e-05/0.8319, allocations: 78.3 kB / 0.9525 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.269e-05/0.8319, allocations: 5.219 kB / 0.9525 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.564e-05/0.832, allocations: 1.156 kB / 0.9525 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.094e-05/0.832, allocations: 9.25 kB / 0.9525 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.484e-06/0.832, allocations: 3.062 kB / 0.9525 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.646e-05/0.8321, allocations: 89.81 kB / 0.9526 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8321, allocations: 0 / 0.9526 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000254/0.8323, allocations: 17.47 kB / 0.9526 GB, free: 5.602 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.0001641/0.8325, allocations: 111.2 kB / 0.9527 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001274/0.8326, allocations: 95.83 kB / 0.9528 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.8326, allocations: 0 / 0.9528 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 2.281e-05/0.8327, allocations: 55.88 kB / 0.9528 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002034/0.8329, allocations: 2.312 kB / 0.9528 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002054/0.8331, allocations: 105 kB / 0.9529 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001266/0.8332, allocations: 0.6869 MB / 0.9536 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.093e-05/0.8333, allocations: 11.02 kB / 0.9536 GB, free: 4.539 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.243e-05/0.8333, allocations: 9.156 kB / 0.9536 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.8333, allocations: 0 / 0.9536 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of Templates: time 0.002677/0.836, allocations: 0.5081 MB / 0.9541 GB, free: 4.27 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