Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Utilities.Examples.WriteRealMatrixToFile.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Utilities.Examples.WriteRealMatrixToFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008553/0.0008552, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.006246/0.006246, allocations: 174 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.585/1.585, allocations: 205.4 MB / 222.4 MB, free: 5.582 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004823/0.0004825, allocations: 12 kB / 279.4 MB, free: 12.54 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.2791, allocations: 47.59 MB / 327 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0006651/0.2798, allocations: 217.4 kB / 327.2 MB, free: 1.227 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003522/0.2802, allocations: 55.69 kB / 327.3 MB, free: 1.191 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.299e-05/0.2802, allocations: 0 / 327.3 MB, free: 1.191 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 3.851e-05/0.2803, allocations: 1.312 kB / 327.3 MB, free: 1.191 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 9.67e-05/0.2804, allocations: 18.62 kB / 327.3 MB, free: 1.18 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001982/0.2806, allocations: 28.62 kB / 327.3 MB, free: 1.16 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 7.373e-05/0.2807, allocations: 19.2 kB / 327.3 MB, free: 1.152 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.996e-05/0.2807, allocations: 1.281 kB / 327.4 MB, free: 1.152 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.176e-05/0.2808, allocations: 18.55 kB / 327.4 MB, free: 1.141 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.498e-05/0.2809, allocations: 25.56 kB / 327.4 MB, free: 1.129 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 2.134e-05/0.2809, allocations: 1.031 kB / 327.4 MB, free: 1.129 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.086e-05/0.281, allocations: 5.312 kB / 327.4 MB, free: 1.129 MB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 5.684e-05/0.2811, allocations: 7.125 kB / 327.4 MB, free: 1.125 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 6.048e-05/0.2811, allocations: 37 kB / 327.4 MB, free: 1.086 MB / 254.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001245/0.2813, allocations: 30.97 kB / 327.5 MB, free: 1.066 MB / 254.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.2813, allocations: 1 kB / 327.5 MB, free: 1.066 MB / 254.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.2813, allocations: 0 / 327.5 MB, free: 1.066 MB / 254.1 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.2813, allocations: 0 / 327.5 MB, free: 1.066 MB / 254.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003557/0.2816, allocations: 358.4 kB / 327.8 MB, free: 0.668 MB / 254.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.792e-05/0.2817, allocations: 10.16 kB / 327.8 MB, free: 0.668 MB / 254.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.885e-05/0.2818, allocations: 1.969 kB / 327.8 MB, free: 0.668 MB / 254.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001124/0.2819, allocations: 170.7 kB / 328 MB, free: 476 kB / 254.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/0.2819, allocations: 1.531 kB / 328 MB, free: 476 kB / 254.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.386e-05/0.2819, allocations: 2.281 kB / 328 MB, free: 476 kB / 254.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001562/0.2821, allocations: 63.45 kB / 328.1 MB, free: 432 kB / 254.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.746e-06/0.2821, allocations: 4.125 kB / 328.1 MB, free: 428 kB / 254.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.2821, allocations: 4.906 kB / 328.1 MB, free: 424 kB / 254.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.101e-06/0.2821, allocations: 0 / 328.1 MB, free: 424 kB / 254.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.402e-05/0.2822, allocations: 26.2 kB / 328.1 MB, free: 420 kB / 254.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001348/0.2823, allocations: 155.4 kB / 328.3 MB, free: 220 kB / 254.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.134e-05/0.2824, allocations: 46.81 kB / 328.3 MB, free: 188 kB / 254.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.037e-05/0.2825, allocations: 40.33 kB / 328.3 MB, free: 168 kB / 254.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.01e-05/0.2825, allocations: 0 / 328.3 MB, free: 168 kB / 254.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.445e-05/0.2825, allocations: 63.83 kB / 328.4 MB, free: 92 kB / 254.1 MB Notification: Performance of pre-optimization done (n=4): time 3.897e-06/0.2825, allocations: 3.984 kB / 328.4 MB, free: 88 kB / 254.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003479/0.2829, allocations: 186.7 kB / 328.6 MB, free: 15.99 MB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.674e-05/0.283, allocations: 79.14 kB / 328.7 MB, free: 15.9 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.2831, allocations: 110.2 kB / 328.8 MB, free: 15.79 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.771e-05/0.2831, allocations: 26.83 kB / 328.8 MB, free: 15.76 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.48e-05/0.2832, allocations: 90.2 kB / 328.9 MB, free: 15.67 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.597e-05/0.2832, allocations: 4.938 kB / 328.9 MB, free: 15.67 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.374e-05/0.2833, allocations: 16.86 kB / 328.9 MB, free: 15.65 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001295/0.2834, allocations: 319.8 kB / 329.2 MB, free: 15.33 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.819e-05/0.2835, allocations: 25.45 kB / 329.2 MB, free: 15.32 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.763e-05/0.2835, allocations: 27.3 kB / 329.3 MB, free: 15.32 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.2836, allocations: 124.4 kB / 329.4 MB, free: 15.23 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2836, allocations: 0 / 329.4 MB, free: 15.23 MB / 270.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002108/0.2839, allocations: 152 kB / 329.5 MB, free: 15.15 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.321e-05/0.2839, allocations: 35.67 kB / 329.6 MB, free: 15.11 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.562e-06/0.2839, allocations: 5.5 kB / 329.6 MB, free: 15.11 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.2839, allocations: 3.938 kB / 329.6 MB, free: 15.11 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.042e-06/0.284, allocations: 0 / 329.6 MB, free: 15.11 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.854e-06/0.284, allocations: 3.984 kB / 329.6 MB, free: 15.1 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.284e-05/0.284, allocations: 2.5 kB / 329.6 MB, free: 15.1 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.284, allocations: 1.469 kB / 329.6 MB, free: 15.1 MB / 270.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (success4,success3,success2,success1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001241/0.2841, allocations: 143.9 kB / 329.7 MB, free: 14.95 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.372e-05/0.2842, allocations: 7.359 kB / 329.7 MB, free: 14.95 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.147e-05/0.2842, allocations: 13.78 kB / 329.8 MB, free: 14.93 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.2842, allocations: 0 / 329.8 MB, free: 14.93 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.2842, allocations: 1.281 kB / 329.8 MB, free: 14.93 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.456e-06/0.2842, allocations: 0 / 329.8 MB, free: 14.93 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000136/0.2844, allocations: 159.7 kB / 329.9 MB, free: 14.73 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2844, allocations: 1 kB / 329.9 MB, free: 14.73 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.875e-06/0.2844, allocations: 0 / 329.9 MB, free: 14.73 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.2844, allocations: 5.125 kB / 329.9 MB, free: 14.73 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.617e-05/0.2844, allocations: 10.11 kB / 329.9 MB, free: 14.72 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.2844, allocations: 0 / 329.9 MB, free: 14.72 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.2844, allocations: 1.031 kB / 329.9 MB, free: 14.72 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002684/0.2847, allocations: 190.6 kB / 330.1 MB, free: 14.6 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.662e-05/0.2848, allocations: 83.31 kB / 330.2 MB, free: 14.5 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.101e-05/0.2848, allocations: 5.125 kB / 330.2 MB, free: 14.5 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.259e-05/0.2848, allocations: 2.281 kB / 330.2 MB, free: 14.5 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.869e-05/0.2848, allocations: 5.141 kB / 330.2 MB, free: 14.5 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.873e-06/0.2849, allocations: 2.125 kB / 330.2 MB, free: 14.5 MB / 270.1 MB Notification: Performance of sorting global known variables: time 6.455e-05/0.2849, allocations: 95.48 kB / 330.3 MB, free: 14.41 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2849, allocations: 4.031 kB / 330.3 MB, free: 14.41 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0001899/0.2851, allocations: 9.75 kB / 330.3 MB, free: 14.41 MB / 270.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (success1,success2,success3,success4) * Number of discrete states: 4 (success4,success3,success2,success1) * 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.0003505/0.2855, allocations: 133.2 kB / 330.4 MB, free: 14.29 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0002204/0.2857, allocations: 135 kB / 330.6 MB, free: 14.2 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.2857, allocations: 0 / 330.6 MB, free: 14.2 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 8.866e-05/0.2858, allocations: 98.92 kB / 330.7 MB, free: 14.12 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001516/0.286, allocations: 3.938 kB / 330.7 MB, free: 14.12 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002875/0.2863, allocations: 146.8 kB / 330.8 MB, free: 13.99 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/0.2866, allocations: 0.6795 MB / 331.5 MB, free: 13.29 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 5.971e-06/0.2866, allocations: 1.094 kB / 331.5 MB, free: 13.29 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.186e-05/0.2866, allocations: 7.438 kB / 331.5 MB, free: 13.29 MB / 270.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2866, allocations: 0 / 331.5 MB, free: 13.29 MB / 270.1 MB Notification: Performance of Templates: time 0.003066/0.2897, allocations: 0.6412 MB / 332.2 MB, free: 12.96 MB / 270.1 MB make -j1 -f Modelica_3.1_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_3.1_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.1_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.1_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.1_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1)