Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 71.75 kB / 20.97 MB, free: 3.578 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 169 kB / 24.28 MB, free: 272 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.032/1.032, allocations: 177.1 MB / 204.6 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.893/1.893, allocations: 377.8 MB / 0.6239 GB, free: 8.57 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration") translateModel(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 0.8116 GB, free: 2.012 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.691e-05/2.837e-05, allocations: 4.844 kB / 0.8116 GB, free: 2.008 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration): time 0.001209/0.001237, allocations: 0.61 MB / 0.8122 GB, free: 1.422 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0002101/0.001447, allocations: 39.88 kB / 0.8122 GB, free: 1.383 MB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.821e-05/0.001475, allocations: 1.25 kB / 0.8122 GB, free: 1.383 MB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 3.682e-05/0.001512, allocations: 0 / 0.8122 GB, free: 1.383 MB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 3.785e-05/0.00155, allocations: 0 / 0.8122 GB, free: 1.383 MB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002038/0.001754, allocations: 14.36 kB / 0.8122 GB, free: 1.371 MB / 0.7605 GB Notification: Performance of NFFlatten.flatten: time 7.148e-05/0.001825, allocations: 8 kB / 0.8122 GB, free: 1.363 MB / 0.7605 GB Notification: Performance of NFFlatten.resolveConnections: time 3.547e-05/0.001861, allocations: 0 / 0.8122 GB, free: 1.363 MB / 0.7605 GB Notification: Performance of NFEvalConstants.evaluate: time 3.239e-05/0.001893, allocations: 11.92 kB / 0.8122 GB, free: 1.352 MB / 0.7605 GB Notification: Performance of NFSimplifyModel.simplify: time 3.987e-05/0.001933, allocations: 0 / 0.8122 GB, free: 1.352 MB / 0.7605 GB Notification: Performance of NFPackage.collectConstants: time 1.425e-05/0.001947, allocations: 0 / 0.8122 GB, free: 1.352 MB / 0.7605 GB Notification: Performance of NFFlatten.collectFunctions: time 6.547e-05/0.002013, allocations: 17.45 kB / 0.8123 GB, free: 1.336 MB / 0.7605 GB Notification: Performance of NFScalarize.scalarize: time 2.907e-05/0.002042, allocations: 7.984 kB / 0.8123 GB, free: 1.328 MB / 0.7605 GB Notification: Performance of NFVerifyModel.verify: time 2.302e-05/0.002065, allocations: 0 / 0.8123 GB, free: 1.328 MB / 0.7605 GB Notification: Performance of NFConvertDAE.convert: time 9.389e-05/0.002159, allocations: 27.97 kB / 0.8123 GB, free: 1.301 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.002161, allocations: 5.438 kB / 0.8123 GB, free: 1.297 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.082e-06/0.002162, allocations: 0 / 0.8123 GB, free: 1.297 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 3.977e-06/0.002166, allocations: 0 / 0.8123 GB, free: 1.297 MB / 0.7605 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.0002848/0.002451, allocations: 374 kB / 0.8127 GB, free: 0.8867 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.002486, allocations: 12.56 kB / 0.8127 GB, free: 0.875 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.768e-05/0.002523, allocations: 0.9375 kB / 0.8127 GB, free: 0.875 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.762e-05/0.002591, allocations: 117.1 kB / 0.8128 GB, free: 0.7344 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.002602, allocations: 1.406 kB / 0.8128 GB, free: 0.7344 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.977e-06/0.002611, allocations: 384 / 0.8128 GB, free: 0.7344 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001124/0.002724, allocations: 71.94 kB / 0.8129 GB, free: 0.6523 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.232e-06/0.00273, allocations: 0.8438 kB / 0.8129 GB, free: 0.6523 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.717e-06/0.002738, allocations: 0.9062 kB / 0.8129 GB, free: 0.6523 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.192e-05/0.00277, allocations: 8.375 kB / 0.8129 GB, free: 0.6445 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.283e-05/0.002803, allocations: 43 kB / 0.8129 GB, free: 0.5977 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002727/0.003076, allocations: 268 kB / 0.8132 GB, free: 308 kB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 4.944e-05/0.003125, allocations: 60.64 kB / 0.8132 GB, free: 228 kB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.234e-05/0.003148, allocations: 38.55 kB / 0.8133 GB, free: 180 kB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 4.879e-06/0.003153, allocations: 4.062 kB / 0.8133 GB, free: 176 kB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.172e-05/0.003174, allocations: 33.39 kB / 0.8133 GB, free: 132 kB / 0.7605 GB Notification: Performance of pre-optimization done (n=1): time 1.293e-06/0.003176, allocations: 0.9375 kB / 0.8133 GB, free: 132 kB / 0.7605 GB Notification: Performance of matching and sorting (n=1): time 0.0001708/0.003346, allocations: 126.7 kB / 0.8134 GB, free: 15.98 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.484e-05/0.003381, allocations: 78.02 kB / 0.8135 GB, free: 15.89 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.43e-05/0.003465, allocations: 173.9 kB / 0.8137 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 9.879e-06/0.003475, allocations: 26.73 kB / 0.8137 GB, free: 15.67 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.2e-05/0.003527, allocations: 158.6 kB / 0.8138 GB, free: 15.51 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 4.769e-06/0.003532, allocations: 0 / 0.8138 GB, free: 15.51 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.97e-05/0.003562, allocations: 28.28 kB / 0.8139 GB, free: 15.47 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001269/0.003689, allocations: 0.4884 MB / 0.8143 GB, free: 14.97 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.449e-05/0.003713, allocations: 35.23 kB / 0.8144 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.314e-05/0.003766, allocations: 107.5 kB / 0.8145 GB, free: 14.79 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001088/0.003875, allocations: 149.1 kB / 0.8146 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.003877, allocations: 0 / 0.8146 GB, free: 14.6 MB / 0.7761 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000109/0.003986, allocations: 148.8 kB / 0.8148 GB, free: 14.44 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.495e-05/0.004011, allocations: 30.2 kB / 0.8148 GB, free: 14.4 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.004016, allocations: 4 kB / 0.8148 GB, free: 14.4 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.004031, allocations: 9.875 kB / 0.8148 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.848e-05/0.004089, allocations: 11.98 kB / 0.8148 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.004097, allocations: 7.938 kB / 0.8148 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.752e-05/0.004144, allocations: 4 kB / 0.8148 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.004155, allocations: 4 kB / 0.8148 GB, free: 14.36 MB / 0.7761 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.703e-05/0.004222, allocations: 191.8 kB / 0.815 GB, free: 14.16 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.664e-05/0.004239, allocations: 11.89 kB / 0.815 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.021e-05/0.004249, allocations: 3.469 kB / 0.815 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.00425, allocations: 1 kB / 0.815 GB, free: 14.15 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.004254, allocations: 4 kB / 0.815 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.004258, allocations: 7.984 kB / 0.815 GB, free: 14.14 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.338e-05/0.004341, allocations: 117.5 kB / 0.8151 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.004342, allocations: 0 / 0.8151 GB, free: 13.99 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.603e-06/0.004344, allocations: 4.781 kB / 0.8152 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.004346, allocations: 3.984 kB / 0.8152 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.004352, allocations: 0 / 0.8152 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-07/0.004353, allocations: 1.281 kB / 0.8152 GB, free: 13.98 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.004355, allocations: 7.984 kB / 0.8152 GB, free: 13.97 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001707/0.004525, allocations: 240.1 kB / 0.8154 GB, free: 13.71 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 9.027e-06/0.004534, allocations: 11.88 kB / 0.8154 GB, free: 13.7 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.638e-06/0.004544, allocations: 4 kB / 0.8154 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.265e-05/0.004577, allocations: 2.5 kB / 0.8154 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.069e-05/0.004587, allocations: 0 / 0.8154 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.038e-06/0.004591, allocations: 4 kB / 0.8154 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.526e-05/0.004627, allocations: 127.2 kB / 0.8155 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.004627, allocations: 0 / 0.8155 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001658/0.004792, allocations: 15.98 kB / 0.8156 GB, free: 13.55 MB / 0.7761 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.0001306/0.004923, allocations: 102.2 kB / 0.8156 GB, free: 13.44 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001247/0.005048, allocations: 142.4 kB / 0.8158 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.005049, allocations: 0 / 0.8158 GB, free: 13.27 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.869e-05/0.005078, allocations: 97.66 kB / 0.8159 GB, free: 13.15 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001545/0.005232, allocations: 7.938 kB / 0.8159 GB, free: 13.14 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002043/0.005437, allocations: 137.1 kB / 0.816 GB, free: 12.98 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.987e-05/0.005466, allocations: 51.36 kB / 0.8161 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 3.761e-05/0.005504, allocations: 13.05 kB / 0.8161 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.304e-05/0.005517, allocations: 13.56 kB / 0.8161 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of SimCode: time 7.82e-07/0.005518, allocations: 0 / 0.8161 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of Templates: time 0.002173/0.007691, allocations: 0.568 MB / 0.8166 GB, free: 12.35 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.sim & ./Buildings_12_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.TrapezoidalIntegration_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_TrapezoidalIntegration.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.11950101191178]