Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.000956/0.0009561, allocations: 100.5 kB / 15.05 MB, free: 1.105 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.000953/0.000953, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.46/1.46, allocations: 223.2 MB / 239.9 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.64/2.64, allocations: 436.5 MB / 0.7104 GB, free: 7.852 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003294/0.0003295, allocations: 12 kB / 0.8708 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7776/0.778, allocations: 153.7 MB / 1.021 GB, free: 1.082 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.0007453/0.7788, allocations: 321.4 kB / 1.021 GB, free: 0.7656 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0001968/0.779, allocations: 35.91 kB / 1.021 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.031e-05/0.779, allocations: 0 / 1.021 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.036e-05/0.7791, allocations: 0 / 1.021 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.941e-05/0.7791, allocations: 0 / 1.021 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001794/0.7793, allocations: 11.92 kB / 1.021 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.191e-05/0.7794, allocations: 8 kB / 1.021 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.881e-05/0.7794, allocations: 0 / 1.021 GB, free: 0.7109 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.097e-05/0.7795, allocations: 4 kB / 1.021 GB, free: 0.707 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.968e-05/0.7795, allocations: 7.938 kB / 1.021 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.442e-05/0.7795, allocations: 0 / 1.021 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.027e-05/0.7796, allocations: 15.98 kB / 1.021 GB, free: 0.6836 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.63e-05/0.7796, allocations: 3.984 kB / 1.021 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.247e-05/0.7797, allocations: 29.7 kB / 1.021 GB, free: 0.6445 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 6.967e-05/0.7797, allocations: 7.984 kB / 1.021 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 2.895e-06/0.7797, allocations: 0 / 1.021 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.265e-06/0.7798, allocations: 0 / 1.021 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.677e-06/0.7798, allocations: 4 kB / 1.021 GB, free: 0.6328 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.0002998/0.7801, allocations: 353 kB / 1.022 GB, free: 240 kB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.7801, allocations: 11.98 kB / 1.022 GB, free: 228 kB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.359e-05/0.7802, allocations: 4 kB / 1.022 GB, free: 224 kB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.813e-05/0.7803, allocations: 169 kB / 1.022 GB, free: 16 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.7803, allocations: 0 / 1.022 GB, free: 16 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-06/0.7803, allocations: 0 / 1.022 GB, free: 16 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001466/0.7804, allocations: 57.64 kB / 1.022 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.7804, allocations: 0 / 1.022 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.7805, allocations: 4 kB / 1.022 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.385e-05/0.7805, allocations: 4 kB / 1.022 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.901e-05/0.7806, allocations: 35.92 kB / 1.022 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003493/0.7809, allocations: 272.7 kB / 1.022 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.553e-05/0.781, allocations: 18.58 kB / 1.022 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.907e-06/0.781, allocations: 0 / 1.022 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.781, allocations: 30.56 kB / 1.022 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.781, allocations: 0 / 1.022 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of matching and sorting (n=1): time 0.0001693/0.7812, allocations: 79.39 kB / 1.022 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.926e-05/0.7812, allocations: 81.05 kB / 1.022 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.77e-05/0.7813, allocations: 113.8 kB / 1.022 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.218e-05/0.7813, allocations: 25.7 kB / 1.022 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.087e-05/0.7814, allocations: 103.8 kB / 1.023 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 7.995e-06/0.7814, allocations: 7.844 kB / 1.023 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.999e-06/0.7814, allocations: 4 kB / 1.023 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001078/0.7815, allocations: 318.8 kB / 1.023 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.261e-05/0.7816, allocations: 16.11 kB / 1.023 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.008e-05/0.7816, allocations: 54.86 kB / 1.023 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.309e-05/0.7817, allocations: 53.62 kB / 1.023 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.7817, allocations: 0 / 1.023 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001322/0.7818, allocations: 115.2 kB / 1.023 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.105e-05/0.7819, allocations: 33.7 kB / 1.023 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.7819, allocations: 0 / 1.023 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.496e-05/0.7819, allocations: 4.25 kB / 1.023 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.467e-05/0.782, allocations: 19.94 kB / 1.023 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.782, allocations: 480 / 1.023 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.629e-05/0.7821, allocations: 11.89 kB / 1.023 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.828e-05/0.7821, allocations: 8 kB / 1.023 GB, free: 14.39 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000103/0.7822, allocations: 143.5 kB / 1.023 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.339e-05/0.7822, allocations: 4 kB / 1.023 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.239e-05/0.7822, allocations: 3.531 kB / 1.023 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.7823, allocations: 3.984 kB / 1.023 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.7823, allocations: 7.938 kB / 1.023 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.7823, allocations: 0 / 1.023 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.7824, allocations: 157.6 kB / 1.023 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.7824, allocations: 0 / 1.023 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.615e-06/0.7824, allocations: 4 kB / 1.023 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.7824, allocations: 0 / 1.023 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.134e-06/0.7825, allocations: 0 / 1.023 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.7825, allocations: 0 / 1.023 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.7825, allocations: 0 / 1.023 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001164/0.7826, allocations: 169.2 kB / 1.024 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.054e-05/0.7826, allocations: 81.02 kB / 1.024 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.428e-05/0.7827, allocations: 4 kB / 1.024 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.499e-05/0.7827, allocations: 3.938 kB / 1.024 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.346e-05/0.7827, allocations: 3.938 kB / 1.024 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.241e-06/0.7827, allocations: 4 kB / 1.024 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.345e-05/0.7828, allocations: 95.25 kB / 1.024 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7828, allocations: 0 / 1.024 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002628/0.7831, allocations: 8 kB / 1.024 GB, free: 13.61 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001625/0.7833, allocations: 111.2 kB / 1.024 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001244/0.7834, allocations: 83.33 kB / 1.024 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.7834, allocations: 0 / 1.024 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.164e-05/0.7834, allocations: 59.39 kB / 1.024 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001259/0.7836, allocations: 4.75 kB / 1.024 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002051/0.7838, allocations: 119.2 kB / 1.024 GB, free: 13.18 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002495/0.784, allocations: 0.677 MB / 1.025 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 9.158e-05/0.7841, allocations: 16.16 kB / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.137e-05/0.7841, allocations: 7.438 kB / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.7842, allocations: 0 / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of Templates: time 0.002389/0.7866, allocations: 0.493 MB / 1.025 GB, free: 11.96 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration.csv","../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches