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.001144/0.001144, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001934/0.001934, allocations: 190.1 kB / 16.25 MB, free: 6.633 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.566/1.566, allocations: 205.1 MB / 222.1 MB, free: 4.699 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.001131/0.001131, allocations: 47.94 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2865/0.2877, allocations: 46.62 MB / 324.8 MB, free: 1.918 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.001699/0.2894, allocations: 0.5448 MB / 325.4 MB, free: 1.504 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002261/0.2897, allocations: 62.73 kB / 325.4 MB, free: 1.461 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.825e-05/0.2897, allocations: 0 / 325.4 MB, free: 1.461 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 4.235e-05/0.2898, allocations: 3.984 kB / 325.4 MB, free: 1.457 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 8.199e-05/0.2899, allocations: 12.86 kB / 325.5 MB, free: 1.453 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000183/0.29, allocations: 18.7 kB / 325.5 MB, free: 1.441 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001022/0.2902, allocations: 29.23 kB / 325.5 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.535e-05/0.2902, allocations: 1.469 kB / 325.5 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.179e-05/0.2903, allocations: 15.84 kB / 325.5 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.319e-05/0.2903, allocations: 18.73 kB / 325.5 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 1.841e-05/0.2904, allocations: 0 / 325.5 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.513e-05/0.2904, allocations: 9.234 kB / 325.5 MB, free: 1.41 MB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 5.655e-05/0.2905, allocations: 11.95 kB / 325.6 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 4.016e-05/0.2905, allocations: 10.97 kB / 325.6 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFConvertDAE.convert: time 9.987e-05/0.2906, allocations: 23.77 kB / 325.6 MB, free: 1.383 MB / 254.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2906, allocations: 0 / 325.6 MB, free: 1.383 MB / 254.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2906, allocations: 0 / 325.6 MB, free: 1.383 MB / 254.1 MB Notification: Performance of Transformations before backend: time 6.011e-06/0.2907, allocations: 4.906 kB / 325.6 MB, free: 1.379 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.0003296/0.291, allocations: 362.2 kB / 326 MB, free: 0.9805 MB / 254.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/0.291, allocations: 9.375 kB / 326 MB, free: 0.9805 MB / 254.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.609e-05/0.2911, allocations: 11.55 kB / 326 MB, free: 0.9727 MB / 254.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.21e-05/0.2912, allocations: 169.6 kB / 326.1 MB, free: 0.7695 MB / 254.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.2912, allocations: 1.625 kB / 326.1 MB, free: 0.7695 MB / 254.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.967e-06/0.2912, allocations: 2.906 kB / 326.1 MB, free: 0.7695 MB / 254.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001063/0.2913, allocations: 62.73 kB / 326.2 MB, free: 0.7266 MB / 254.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.2913, allocations: 4.188 kB / 326.2 MB, free: 0.7227 MB / 254.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.889e-06/0.2913, allocations: 5.125 kB / 326.2 MB, free: 0.7188 MB / 254.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-06/0.2913, allocations: 0 / 326.2 MB, free: 0.7188 MB / 254.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.845e-05/0.2914, allocations: 30.64 kB / 326.2 MB, free: 0.7109 MB / 254.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001229/0.2915, allocations: 151.5 kB / 326.4 MB, free: 0.5195 MB / 254.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.231e-05/0.2916, allocations: 46.7 kB / 326.4 MB, free: 500 kB / 254.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.229e-05/0.2916, allocations: 35.42 kB / 326.5 MB, free: 484 kB / 254.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.025e-05/0.2916, allocations: 1.125 kB / 326.5 MB, free: 484 kB / 254.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.459e-05/0.2917, allocations: 70.56 kB / 326.5 MB, free: 400 kB / 254.1 MB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.2917, allocations: 0 / 326.5 MB, free: 400 kB / 254.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002588/0.292, allocations: 193.5 kB / 326.7 MB, free: 300 kB / 254.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.701e-05/0.292, allocations: 77.11 kB / 326.8 MB, free: 204 kB / 254.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.035e-05/0.2921, allocations: 111.7 kB / 326.9 MB, free: 96 kB / 254.1 MB Notification: Performance of collectPreVariables (initialization): time 7.724e-06/0.2921, allocations: 29.64 kB / 326.9 MB, free: 60 kB / 254.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.92e-05/0.2921, allocations: 86.8 kB / 327 MB, free: 15.97 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.752e-05/0.2922, allocations: 3.906 kB / 327 MB, free: 15.97 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.077e-05/0.2922, allocations: 30.8 kB / 327.1 MB, free: 15.94 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.2923, allocations: 314.8 kB / 327.4 MB, free: 15.62 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.047e-05/0.2924, allocations: 25.14 kB / 327.4 MB, free: 15.62 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.064e-05/0.2924, allocations: 25.3 kB / 327.4 MB, free: 15.62 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001136/0.2925, allocations: 120.7 kB / 327.5 MB, free: 15.53 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.073e-06/0.2925, allocations: 0 / 327.5 MB, free: 15.53 MB / 270.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001587/0.2927, allocations: 157 kB / 327.7 MB, free: 15.45 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.029e-05/0.2927, allocations: 31.45 kB / 327.7 MB, free: 15.41 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.2928, allocations: 5.406 kB / 327.7 MB, free: 15.41 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.2928, allocations: 4 kB / 327.7 MB, free: 15.41 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-07/0.2928, allocations: 0 / 327.7 MB, free: 15.41 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.2928, allocations: 1.469 kB / 327.7 MB, free: 15.41 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.836e-05/0.2928, allocations: 1.531 kB / 327.7 MB, free: 15.41 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.056e-05/0.2928, allocations: 5.453 kB / 327.7 MB, free: 15.4 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.0001054/0.2929, allocations: 144.3 kB / 327.9 MB, free: 15.25 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.387e-05/0.293, allocations: 7.281 kB / 327.9 MB, free: 15.25 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.565e-05/0.293, allocations: 13.23 kB / 327.9 MB, free: 15.23 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/0.293, allocations: 0 / 327.9 MB, free: 15.23 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.293, allocations: 4 kB / 327.9 MB, free: 15.23 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.293, allocations: 1.656 kB / 327.9 MB, free: 15.23 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000105/0.2931, allocations: 155.2 kB / 328.1 MB, free: 15.04 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.2931, allocations: 1.312 kB / 328.1 MB, free: 15.04 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-07/0.2931, allocations: 0 / 328.1 MB, free: 15.04 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.2931, allocations: 0 / 328.1 MB, free: 15.04 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.276e-05/0.2931, allocations: 10.95 kB / 328.1 MB, free: 15.03 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.2932, allocations: 0 / 328.1 MB, free: 15.03 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2932, allocations: 1.688 kB / 328.1 MB, free: 15.03 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002038/0.2934, allocations: 195.2 kB / 328.3 MB, free: 14.9 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.62e-05/0.2934, allocations: 82.39 kB / 328.3 MB, free: 14.8 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.967e-05/0.2934, allocations: 13.3 kB / 328.4 MB, free: 14.79 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.372e-05/0.2935, allocations: 1.281 kB / 328.4 MB, free: 14.79 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.772e-05/0.2935, allocations: 1.594 kB / 328.4 MB, free: 14.79 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.849e-06/0.2935, allocations: 1.406 kB / 328.4 MB, free: 14.79 MB / 270.1 MB Notification: Performance of sorting global known variables: time 4.655e-05/0.2935, allocations: 93.05 kB / 328.4 MB, free: 14.71 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2935, allocations: 0 / 328.4 MB, free: 14.71 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0001902/0.2937, allocations: 8.188 kB / 328.5 MB, free: 14.71 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.0002595/0.294, allocations: 138.9 kB / 328.6 MB, free: 14.59 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0001545/0.2942, allocations: 130.3 kB / 328.7 MB, free: 14.5 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2942, allocations: 1.188 kB / 328.7 MB, free: 14.5 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 7.302e-05/0.2943, allocations: 98.67 kB / 328.8 MB, free: 14.43 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001392/0.2944, allocations: 6.609 kB / 328.8 MB, free: 14.42 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002499/0.2947, allocations: 151.1 kB / 329 MB, free: 14.29 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/0.2949, allocations: 0.6794 MB / 329.6 MB, free: 13.59 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 5.209e-06/0.2949, allocations: 1.25 kB / 329.7 MB, free: 13.59 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.948e-06/0.2949, allocations: 7.438 kB / 329.7 MB, free: 13.59 MB / 270.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2949, allocations: 0 / 329.7 MB, free: 13.59 MB / 270.1 MB Notification: Performance of Templates: time 0.002733/0.2977, allocations: 0.6712 MB / 330.3 MB, free: 13.25 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)