Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile") translateModel(Modelica.Utilities.Examples.WriteRealMatrixToFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001152/0.001152, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.001341/0.001341, allocations: 200 kB / 18.01 MB, free: 5.055 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.547/1.547, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.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.001267/0.001267, allocations: 51.92 kB / 327.8 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09111/0.09239, allocations: 46.62 MB / 374.5 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001693/0.09413, allocations: 494.5 kB / 374.9 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002664/0.09441, allocations: 63.78 kB / 375 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.344e-05/0.09446, allocations: 0 / 375 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.008e-05/0.09452, allocations: 0 / 375 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.036e-05/0.0946, allocations: 15.98 kB / 375 MB, free: 4.039 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001742/0.09478, allocations: 23.91 kB / 375 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001014/0.09489, allocations: 27.92 kB / 375.1 MB, free: 3.988 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.385e-05/0.09494, allocations: 0 / 375.1 MB, free: 3.988 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.257e-05/0.09498, allocations: 15.97 kB / 375.1 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.782e-05/0.09506, allocations: 19.98 kB / 375.1 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.585e-05/0.09508, allocations: 0 / 375.1 MB, free: 3.953 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.308e-05/0.09514, allocations: 8 kB / 375.1 MB, free: 3.945 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.022e-05/0.0952, allocations: 11.92 kB / 375.1 MB, free: 3.934 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.541e-05/0.09524, allocations: 11.92 kB / 375.1 MB, free: 3.922 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001044/0.09535, allocations: 23.92 kB / 375.2 MB, free: 3.898 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.09536, allocations: 0 / 375.2 MB, free: 3.898 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.624e-06/0.09537, allocations: 4 kB / 375.2 MB, free: 3.895 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.09538, allocations: 0 / 375.2 MB, free: 3.895 MB / 318.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.0003688/0.09575, allocations: 361.1 kB / 375.5 MB, free: 3.484 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.0958, allocations: 8.031 kB / 375.5 MB, free: 3.477 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.547e-05/0.09584, allocations: 4.938 kB / 375.5 MB, free: 3.473 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001089/0.09596, allocations: 176.2 kB / 375.7 MB, free: 3.262 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.267e-06/0.09597, allocations: 4.375 kB / 375.7 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.156e-05/0.09599, allocations: 384 / 375.7 MB, free: 3.258 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001128/0.09611, allocations: 54.25 kB / 375.8 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.09612, allocations: 8.188 kB / 375.8 MB, free: 3.191 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.09614, allocations: 3.938 kB / 375.8 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.09615, allocations: 0 / 375.8 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.124e-05/0.0962, allocations: 23.98 kB / 375.8 MB, free: 3.164 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001467/0.09635, allocations: 161.7 kB / 375.9 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.171e-05/0.09643, allocations: 54.48 kB / 376 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.306e-05/0.09648, allocations: 36.92 kB / 376 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.644e-06/0.09649, allocations: 0 / 376 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.168e-05/0.09654, allocations: 60.27 kB / 376.1 MB, free: 2.781 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.09655, allocations: 0 / 376.1 MB, free: 2.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002973/0.09685, allocations: 183.3 kB / 376.3 MB, free: 2.59 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.42e-05/0.09692, allocations: 89.03 kB / 376.4 MB, free: 2.484 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.202e-05/0.09702, allocations: 113.8 kB / 376.5 MB, free: 2.363 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.477e-05/0.09704, allocations: 25.7 kB / 376.5 MB, free: 2.332 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.411e-05/0.09709, allocations: 88.14 kB / 376.6 MB, free: 2.242 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.09711, allocations: 3.906 kB / 376.6 MB, free: 2.238 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.574e-05/0.09715, allocations: 21.75 kB / 376.6 MB, free: 2.211 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.09726, allocations: 322.8 kB / 376.9 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.33e-05/0.0973, allocations: 20 kB / 376.9 MB, free: 1.867 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.964e-05/0.09734, allocations: 28.23 kB / 377 MB, free: 1.84 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001088/0.09746, allocations: 120.4 kB / 377.1 MB, free: 1.707 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.09747, allocations: 4 kB / 377.1 MB, free: 1.703 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001683/0.09764, allocations: 151.3 kB / 377.2 MB, free: 1.543 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.923e-05/0.09769, allocations: 37.69 kB / 377.3 MB, free: 1.5 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.834e-06/0.0977, allocations: 11.94 kB / 377.3 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.397e-05/0.09772, allocations: 0 / 377.3 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.322e-06/0.09773, allocations: 0 / 377.3 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.122e-06/0.09774, allocations: 0 / 377.3 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.991e-05/0.09777, allocations: 4 kB / 377.3 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.09778, allocations: 0 / 377.3 MB, free: 1.484 MB / 318.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.0001066/0.09789, allocations: 147.5 kB / 377.4 MB, free: 1.324 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.161e-05/0.09791, allocations: 4 kB / 377.4 MB, free: 1.32 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.776e-05/0.09793, allocations: 11.84 kB / 377.4 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.09794, allocations: 4 kB / 377.5 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.09795, allocations: 0 / 377.5 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.09796, allocations: 0 / 377.5 MB, free: 1.301 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001176/0.09808, allocations: 169.5 kB / 377.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.09809, allocations: 0 / 377.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.22e-07/0.09809, allocations: 0 / 377.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.0981, allocations: 0 / 377.6 MB, free: 1.086 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.09812, allocations: 7.938 kB / 377.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.09812, allocations: 0 / 377.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.09813, allocations: 0 / 377.6 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002131/0.09834, allocations: 198.7 kB / 377.8 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.261e-05/0.09839, allocations: 77.11 kB / 377.9 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.09841, allocations: 7.938 kB / 377.9 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.265e-05/0.09843, allocations: 0 / 377.9 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.481e-05/0.09845, allocations: 3.938 kB / 377.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.09846, allocations: 7.984 kB / 377.9 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.463e-05/0.09852, allocations: 91.28 kB / 378 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09853, allocations: 0 / 378 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000202/0.09874, allocations: 12 kB / 378 MB, free: 0.6445 MB / 318.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.0002579/0.099, allocations: 138.3 kB / 378.2 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001596/0.09917, allocations: 127.4 kB / 378.3 MB, free: 376 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.09918, allocations: 4 kB / 378.3 MB, free: 372 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.36e-05/0.09925, allocations: 95.38 kB / 378.4 MB, free: 264 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001391/0.0994, allocations: 4.125 kB / 378.4 MB, free: 260 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002585/0.09967, allocations: 152.8 kB / 378.5 MB, free: 80 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1904/0.2901, allocations: 0.6749 MB / 379.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.054e-05/0.2902, allocations: 0.7031 kB / 379.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.226e-05/0.2902, allocations: 7.969 kB / 379.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of SimCode: time 1.864e-06/0.2902, allocations: 0 / 379.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of Templates: time 0.002971/0.2932, allocations: 0.6858 MB / 379.9 MB, free: 12.35 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile.makefile (rm -f Modelica_3.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; mkfifo Modelica_3.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe >> ../files/Modelica_3.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile.sim & ./Modelica_3.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Utilities.Examples.WriteRealMatrixToFile.pipe 2>&1)