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.005214/0.005215, allocations: 103.7 kB / 15.74 MB, free: 5.988 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.001111/0.001111, allocations: 190.1 kB / 16.67 MB, free: 5.914 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.542/1.542, allocations: 205.1 MB / 222.5 MB, free: 4.5 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.001168/0.001168, allocations: 59.61 kB / 326.5 MB, free: 14.42 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1136, allocations: 46.63 MB / 373.1 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001644/0.1153, allocations: 483.2 kB / 373.6 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002793/0.1155, allocations: 59.78 kB / 373.7 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.661e-05/0.1156, allocations: 0 / 373.7 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 3.007e-05/0.1156, allocations: 0 / 373.7 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.61e-05/0.1157, allocations: 15.92 kB / 373.7 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001912/0.1159, allocations: 23.97 kB / 373.7 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001083/0.116, allocations: 15.98 kB / 373.7 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.322e-05/0.1161, allocations: 7.984 kB / 373.7 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.663e-05/0.1161, allocations: 19.97 kB / 373.8 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.591e-05/0.1162, allocations: 19.92 kB / 373.8 MB, free: 0.6992 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.758e-05/0.1163, allocations: 4 kB / 373.8 MB, free: 0.6953 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.877e-05/0.1163, allocations: 12 kB / 373.8 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.525e-05/0.1164, allocations: 7.922 kB / 373.8 MB, free: 0.6758 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.369e-05/0.1164, allocations: 19.86 kB / 373.8 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001027/0.1165, allocations: 19.92 kB / 373.8 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.1165, allocations: 0 / 373.8 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1165, allocations: 0 / 373.8 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.427e-06/0.1165, allocations: 0 / 373.8 MB, free: 0.6367 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.0004139/0.117, allocations: 369.1 kB / 374.2 MB, free: 224 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.117, allocations: 8.031 kB / 374.2 MB, free: 216 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.487e-05/0.117, allocations: 4.938 kB / 374.2 MB, free: 212 kB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.1172, allocations: 172.3 kB / 374.4 MB, free: 0 / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.881e-05/0.1172, allocations: 4.484 kB / 374.4 MB, free: 15.99 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.352e-05/0.1172, allocations: 8.312 kB / 374.4 MB, free: 15.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001249/0.1174, allocations: 58.25 kB / 374.4 MB, free: 15.92 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.1174, allocations: 192 / 374.4 MB, free: 15.92 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.1174, allocations: 3.938 kB / 374.5 MB, free: 15.92 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.1174, allocations: 0 / 374.5 MB, free: 15.92 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.634e-05/0.1174, allocations: 31.92 kB / 374.5 MB, free: 15.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000161/0.1176, allocations: 157.7 kB / 374.6 MB, free: 15.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.246e-05/0.1177, allocations: 46.61 kB / 374.7 MB, free: 15.63 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.085e-05/0.1177, allocations: 32.92 kB / 374.7 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.127e-06/0.1178, allocations: 0 / 374.7 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.15e-05/0.1178, allocations: 64.27 kB / 374.8 MB, free: 15.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 7.62e-07/0.1178, allocations: 0 / 374.8 MB, free: 15.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.000329/0.1182, allocations: 187.2 kB / 375 MB, free: 15.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/0.1182, allocations: 81.14 kB / 375 MB, free: 15.22 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.688e-05/0.1183, allocations: 121.8 kB / 375.2 MB, free: 15.09 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.1183, allocations: 25.7 kB / 375.2 MB, free: 15.06 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.763e-05/0.1184, allocations: 80.14 kB / 375.3 MB, free: 14.98 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.099e-05/0.1184, allocations: 11.84 kB / 375.3 MB, free: 14.97 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.565e-05/0.1184, allocations: 18.06 kB / 375.3 MB, free: 14.95 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.1185, allocations: 314.8 kB / 375.6 MB, free: 14.63 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.324e-05/0.1186, allocations: 28 kB / 375.6 MB, free: 14.6 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.642e-05/0.1186, allocations: 27.98 kB / 375.7 MB, free: 14.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001013/0.1187, allocations: 120.2 kB / 375.8 MB, free: 14.44 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1187, allocations: 0 / 375.8 MB, free: 14.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001467/0.1189, allocations: 159.2 kB / 375.9 MB, free: 14.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.42e-05/0.1189, allocations: 33.69 kB / 376 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.955e-06/0.119, allocations: 7.938 kB / 376 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.119, allocations: 0 / 376 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.122e-06/0.119, allocations: 0 / 376 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.119, allocations: 0 / 376 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.236e-05/0.119, allocations: 0 / 376 MB, free: 14.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.171e-05/0.1191, allocations: 12 kB / 376 MB, free: 14.21 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.0001136/0.1192, allocations: 143.5 kB / 376.1 MB, free: 14.06 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.234e-05/0.1192, allocations: 4 kB / 376.1 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.851e-05/0.1192, allocations: 11.84 kB / 376.1 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1192, allocations: 192 / 376.1 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.1192, allocations: 3.938 kB / 376.1 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.1192, allocations: 3.984 kB / 376.1 MB, free: 14.03 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.839e-05/0.1194, allocations: 161.7 kB / 376.3 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.1194, allocations: 256 / 376.3 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.1194, allocations: 4 kB / 376.3 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.327e-06/0.1194, allocations: 4 kB / 376.3 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.847e-06/0.1194, allocations: 7.938 kB / 376.3 MB, free: 13.81 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.71e-07/0.1194, allocations: 0 / 376.3 MB, free: 13.81 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1194, allocations: 0 / 376.3 MB, free: 13.81 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002011/0.1196, allocations: 198.6 kB / 376.5 MB, free: 13.59 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.031e-05/0.1197, allocations: 81.11 kB / 376.6 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.706e-05/0.1197, allocations: 3.938 kB / 376.6 MB, free: 13.49 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.363e-05/0.1197, allocations: 8.031 kB / 376.6 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.748e-05/0.1197, allocations: 0 / 376.6 MB, free: 13.48 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-06/0.1197, allocations: 3.984 kB / 376.6 MB, free: 13.48 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.197e-05/0.1198, allocations: 91.28 kB / 376.7 MB, free: 13.39 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1198, allocations: 0 / 376.7 MB, free: 13.39 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001898/0.12, allocations: 8 kB / 376.7 MB, free: 13.38 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.0003325/0.1203, allocations: 127 kB / 376.8 MB, free: 13.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001767/0.1205, allocations: 123.4 kB / 376.9 MB, free: 13.11 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.1205, allocations: 0 / 376.9 MB, free: 13.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 7.402e-05/0.1206, allocations: 107.2 kB / 377.1 MB, free: 13 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001412/0.1207, allocations: 4 kB / 377.1 MB, free: 12.99 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002647/0.121, allocations: 148.7 kB / 377.2 MB, free: 12.82 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.1213, allocations: 0.6807 MB / 377.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.182e-06/0.1213, allocations: 128 / 377.9 MB, free: 12.12 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.771e-05/0.1213, allocations: 11.44 kB / 377.9 MB, free: 12.11 MB / 318.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1213, allocations: 0 / 377.9 MB, free: 12.11 MB / 318.1 MB Notification: Performance of Templates: time 0.003164/0.1245, allocations: 0.6811 MB / 378.6 MB, free: 11.42 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)