Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7958/0.7958, allocations: 141.8 MB / 149.3 MB, free: 9.211 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 188.9 kB / 182.2 MB, free: 9.449 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 221.5 MB / 436.4 MB, free: 13.27 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008554/0.0008554, allocations: 84.05 kB / 0.5074 GB, free: 10.11 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001754/0.001754, allocations: 283.7 kB / 0.5889 GB, free: 54.64 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.79e-05/1.783e-05, allocations: 8 kB / 0.6766 GB, free: 12.79 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.376/0.376, allocations: 82.77 MB / 0.7574 GB, free: 32.01 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1315/0.5075, allocations: 107.1 MB / 0.862 GB, free: 4.734 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000261/0.5079, allocations: 75.81 kB / 0.8621 GB, free: 4.664 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.001549/0.5094, allocations: 0.55 MB / 0.8626 GB, free: 4.113 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.583e-06/0.5095, allocations: 4 kB / 0.8626 GB, free: 4.109 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.979e-06/0.5095, allocations: 0 / 0.8626 GB, free: 4.109 MB / 0.5261 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.0002744/0.5097, allocations: 336.3 kB / 0.8629 GB, free: 3.73 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.5098, allocations: 12.03 kB / 0.863 GB, free: 3.719 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.043e-05/0.5098, allocations: 0 / 0.863 GB, free: 3.719 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.902e-05/0.5099, allocations: 171 kB / 0.8631 GB, free: 3.512 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.38e-05/0.5099, allocations: 7.891 kB / 0.8631 GB, free: 3.504 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.087e-05/0.51, allocations: 7.984 kB / 0.8631 GB, free: 3.496 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.111e-05/0.5101, allocations: 20 kB / 0.8631 GB, free: 3.477 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.441e-05/0.5101, allocations: 53.62 kB / 0.8632 GB, free: 3.418 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.5102, allocations: 3.984 kB / 0.8632 GB, free: 3.414 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.878e-06/0.5102, allocations: 0 / 0.8632 GB, free: 3.414 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.822e-05/0.5102, allocations: 8 kB / 0.8632 GB, free: 3.406 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003266/0.5105, allocations: 241.4 kB / 0.8634 GB, free: 3.133 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 4.564e-05/0.5106, allocations: 18.56 kB / 0.8635 GB, free: 3.105 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.363e-05/0.5106, allocations: 8.859 kB / 0.8635 GB, free: 3.094 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 3.647e-06/0.5106, allocations: 4.062 kB / 0.8635 GB, free: 3.09 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.972e-05/0.5107, allocations: 30.56 kB / 0.8635 GB, free: 3.051 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.5107, allocations: 0 / 0.8635 GB, free: 3.051 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1): time 0.000173/0.5109, allocations: 41.55 kB / 0.8635 GB, free: 3.004 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.096e-05/0.5109, allocations: 81.05 kB / 0.8636 GB, free: 2.906 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.783e-05/0.511, allocations: 105 kB / 0.8637 GB, free: 2.797 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.511, allocations: 33.73 kB / 0.8638 GB, free: 2.758 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 5.524e-05/0.5111, allocations: 99.78 kB / 0.8638 GB, free: 2.656 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 8.295e-06/0.5111, allocations: 8 kB / 0.8639 GB, free: 2.648 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.739e-06/0.5111, allocations: 0 / 0.8639 GB, free: 2.648 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001072/0.5112, allocations: 314.8 kB / 0.8642 GB, free: 2.332 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.084e-05/0.5112, allocations: 8 kB / 0.8642 GB, free: 2.324 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.647e-05/0.5113, allocations: 62.92 kB / 0.8642 GB, free: 2.238 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.838e-05/0.5114, allocations: 23.92 kB / 0.8642 GB, free: 2.215 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.5114, allocations: 0 / 0.8642 GB, free: 2.215 MB / 0.5261 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001504/0.5115, allocations: 85.45 kB / 0.8643 GB, free: 2.125 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.263e-05/0.5116, allocations: 29.7 kB / 0.8644 GB, free: 2.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.5116, allocations: 4 kB / 0.8644 GB, free: 2.086 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.5116, allocations: 0 / 0.8644 GB, free: 2.086 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.49e-05/0.5117, allocations: 15.98 kB / 0.8644 GB, free: 2.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.5117, allocations: 7.938 kB / 0.8644 GB, free: 2.062 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.597e-05/0.5118, allocations: 7.938 kB / 0.8644 GB, free: 2.055 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.5118, allocations: 8.25 kB / 0.8644 GB, free: 2.047 MB / 0.5261 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 () * 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 9.141e-05/0.5119, allocations: 142.6 kB / 0.8645 GB, free: 1.895 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.885e-05/0.5119, allocations: 3.906 kB / 0.8645 GB, free: 1.891 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.052e-05/0.512, allocations: 7.969 kB / 0.8645 GB, free: 1.879 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.552e-06/0.512, allocations: 3.938 kB / 0.8645 GB, free: 1.875 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.512, allocations: 3.984 kB / 0.8646 GB, free: 1.871 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.512, allocations: 0 / 0.8646 GB, free: 1.871 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001363/0.5121, allocations: 130.2 kB / 0.8647 GB, free: 1.707 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.5121, allocations: 0 / 0.8647 GB, free: 1.707 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.01e-07/0.5121, allocations: 0 / 0.8647 GB, free: 1.707 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/0.5121, allocations: 7.984 kB / 0.8647 GB, free: 1.699 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.5122, allocations: 4 kB / 0.8647 GB, free: 1.695 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.5122, allocations: 0 / 0.8647 GB, free: 1.695 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5122, allocations: 0 / 0.8647 GB, free: 1.695 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001175/0.5123, allocations: 131.5 kB / 0.8648 GB, free: 1.551 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.051e-05/0.5123, allocations: 89.05 kB / 0.8649 GB, free: 1.445 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.5124, allocations: 0 / 0.8649 GB, free: 1.445 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.98e-05/0.5124, allocations: 4.031 kB / 0.8649 GB, free: 1.441 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.749e-05/0.5124, allocations: 4 kB / 0.8649 GB, free: 1.438 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.179e-06/0.5125, allocations: 0 / 0.8649 GB, free: 1.438 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 4.391e-05/0.5125, allocations: 87.28 kB / 0.865 GB, free: 1.352 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5125, allocations: 0 / 0.865 GB, free: 1.352 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002782/0.5128, allocations: 11.98 kB / 0.865 GB, free: 1.34 MB / 0.5261 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 () * 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.0002213/0.513, allocations: 107.2 kB / 0.8651 GB, free: 1.227 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001258/0.5132, allocations: 83.64 kB / 0.8652 GB, free: 1.133 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.5132, allocations: 4.125 kB / 0.8652 GB, free: 1.129 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 3.051e-05/0.5132, allocations: 55.41 kB / 0.8652 GB, free: 1.062 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001455/0.5134, allocations: 8 kB / 0.8652 GB, free: 1.055 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002127/0.5136, allocations: 63.88 kB / 0.8653 GB, free: 0.9688 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003035/0.5139, allocations: 0.6845 MB / 0.866 GB, free: 264 kB / 0.5261 GB Notification: Performance of simCode: alias equations: time 5.117e-05/0.514, allocations: 16.17 kB / 0.866 GB, free: 244 kB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.388e-05/0.514, allocations: 11.44 kB / 0.866 GB, free: 232 kB / 0.5261 GB Notification: Performance of SimCode: time 4.41e-07/0.514, allocations: 0 / 0.866 GB, free: 232 kB / 0.5261 GB Notification: Performance of Templates: time 0.002599/0.5166, allocations: 490.5 kB / 0.8665 GB, free: 15.76 MB / 0.5417 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.TrapezoidalIntegration.pipe 2>&1)