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.006941/0.006941, allocations: 100.4 kB / 15.73 MB, free: 6.047 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.001549/0.001549, allocations: 197.2 kB / 16.67 MB, free: 5.977 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.596/1.596, allocations: 205.1 MB / 222.5 MB, free: 4.516 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.001281/0.001281, allocations: 53.92 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1214, allocations: 46.63 MB / 373.1 MB, free: 1.348 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001664/0.1231, allocations: 487.2 kB / 373.6 MB, free: 0.875 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002788/0.1234, allocations: 51.81 kB / 373.7 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.74e-05/0.1234, allocations: 0 / 373.7 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.662e-05/0.1235, allocations: 0 / 373.7 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.458e-05/0.1236, allocations: 15.97 kB / 373.7 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001827/0.1238, allocations: 19.92 kB / 373.7 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001144/0.1239, allocations: 23.97 kB / 373.7 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.442e-05/0.1239, allocations: 7.984 kB / 373.7 MB, free: 0.7578 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.656e-05/0.124, allocations: 4 kB / 373.7 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.663e-05/0.1241, allocations: 31.89 kB / 373.8 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.796e-05/0.1241, allocations: 4 kB / 373.8 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.745e-05/0.1242, allocations: 12 kB / 373.8 MB, free: 0.707 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.479e-05/0.1242, allocations: 4 kB / 373.8 MB, free: 0.7031 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.48e-05/0.1243, allocations: 7.938 kB / 373.8 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001143/0.1244, allocations: 27.91 kB / 373.8 MB, free: 0.668 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1244, allocations: 0 / 373.8 MB, free: 0.668 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.958e-06/0.1244, allocations: 3.938 kB / 373.8 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.093e-06/0.1244, allocations: 3.938 kB / 373.8 MB, free: 0.6602 MB / 302.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.0004315/0.1248, allocations: 369.1 kB / 374.2 MB, free: 248 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.08e-05/0.1249, allocations: 16.03 kB / 374.2 MB, free: 232 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.572e-05/0.1249, allocations: 4.875 kB / 374.2 MB, free: 228 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001375/0.1251, allocations: 172.3 kB / 374.4 MB, free: 12 kB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.1251, allocations: 384 / 374.4 MB, free: 12 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.1251, allocations: 384 / 374.4 MB, free: 12 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000163/0.1253, allocations: 66.22 kB / 374.4 MB, free: 15.94 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.1253, allocations: 192 / 374.4 MB, free: 15.94 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.15e-05/0.1253, allocations: 3.938 kB / 374.5 MB, free: 15.94 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.1253, allocations: 0 / 374.5 MB, free: 15.94 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.795e-05/0.1254, allocations: 31.98 kB / 374.5 MB, free: 15.91 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000165/0.1256, allocations: 161.7 kB / 374.6 MB, free: 15.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.766e-05/0.1256, allocations: 42.56 kB / 374.7 MB, free: 15.65 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.137e-05/0.1257, allocations: 36.92 kB / 374.7 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.695e-06/0.1257, allocations: 0 / 374.7 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.364e-05/0.1257, allocations: 56.27 kB / 374.8 MB, free: 15.54 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 9.31e-07/0.1257, allocations: 4 kB / 374.8 MB, free: 15.54 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.000324/0.1261, allocations: 187.2 kB / 375 MB, free: 15.34 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.216e-05/0.1262, allocations: 81.14 kB / 375 MB, free: 15.24 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001114/0.1263, allocations: 109.8 kB / 375.1 MB, free: 15.12 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.1263, allocations: 29.7 kB / 375.2 MB, free: 15.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.564e-05/0.1264, allocations: 84.14 kB / 375.3 MB, free: 15 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.348e-05/0.1264, allocations: 7.844 kB / 375.3 MB, free: 15 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.711e-05/0.1264, allocations: 26.05 kB / 375.3 MB, free: 14.96 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.1266, allocations: 310.8 kB / 375.6 MB, free: 14.65 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.827e-05/0.1266, allocations: 27.98 kB / 375.6 MB, free: 14.62 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.937e-05/0.1266, allocations: 31.98 kB / 375.7 MB, free: 14.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001834/0.1268, allocations: 116.2 kB / 375.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1268, allocations: 0 / 375.8 MB, free: 14.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002236/0.1271, allocations: 159.2 kB / 375.9 MB, free: 14.3 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.162e-05/0.1271, allocations: 33.7 kB / 376 MB, free: 14.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.1271, allocations: 3.938 kB / 376 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.596e-05/0.1272, allocations: 4 kB / 376 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.314e-06/0.1272, allocations: 3.984 kB / 376 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.1272, allocations: 0 / 376 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.336e-05/0.1272, allocations: 4.062 kB / 376 MB, free: 14.24 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.168e-05/0.1272, allocations: 4 kB / 376 MB, free: 14.24 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.000115/0.1273, allocations: 143.5 kB / 376.1 MB, free: 14.08 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.302e-05/0.1274, allocations: 7.938 kB / 376.1 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.507e-05/0.1274, allocations: 7.844 kB / 376.1 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.52e-07/0.1274, allocations: 3.938 kB / 376.1 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.1274, allocations: 0 / 376.1 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.1274, allocations: 0 / 376.1 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001862/0.1276, allocations: 157.7 kB / 376.3 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1276, allocations: 256 / 376.3 MB, free: 13.86 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.966e-06/0.1276, allocations: 7.984 kB / 376.3 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1276, allocations: 4 kB / 376.3 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.1276, allocations: 11.92 kB / 376.3 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.11e-07/0.1276, allocations: 0 / 376.3 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1277, allocations: 0 / 376.3 MB, free: 13.83 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002092/0.1279, allocations: 198.8 kB / 376.5 MB, free: 13.61 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.099e-05/0.1279, allocations: 85.09 kB / 376.6 MB, free: 13.51 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.768e-05/0.1279, allocations: 3.938 kB / 376.6 MB, free: 13.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.316e-05/0.128, allocations: 8.031 kB / 376.6 MB, free: 13.5 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.05e-05/0.128, allocations: 4 kB / 376.6 MB, free: 13.5 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.037e-06/0.128, allocations: 0 / 376.6 MB, free: 13.5 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.563e-05/0.128, allocations: 87.27 kB / 376.7 MB, free: 13.41 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1281, allocations: 4 kB / 376.7 MB, free: 13.41 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002079/0.1283, allocations: 8 kB / 376.7 MB, free: 13.4 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.0002893/0.1286, allocations: 131 kB / 376.8 MB, free: 13.26 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001836/0.1288, allocations: 127.4 kB / 377 MB, free: 13.12 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1288, allocations: 0 / 377 MB, free: 13.12 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 8.129e-05/0.1289, allocations: 99.33 kB / 377.1 MB, free: 13.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001371/0.129, allocations: 0 / 377.1 MB, free: 13.02 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003/0.1293, allocations: 152.8 kB / 377.2 MB, free: 12.84 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004138/0.1297, allocations: 0.6807 MB / 377.9 MB, free: 12.13 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.192e-06/0.1297, allocations: 4.125 kB / 377.9 MB, free: 12.13 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.113e-05/0.1298, allocations: 7.438 kB / 377.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1298, allocations: 0 / 377.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of Templates: time 0.003017/0.1328, allocations: 0.6773 MB / 378.6 MB, free: 11.44 MB / 318.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)