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.0008177/0.0008177, allocations: 87.03 kB / 15.06 MB, free: 1.09 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.0009111/0.0009114, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.613/1.613, allocations: 205.4 MB / 222.1 MB, free: 5.645 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.000816/0.0008163, allocations: 12 kB / 278.9 MB, free: 12.83 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2711/0.2719, allocations: 47.59 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.0005908/0.2725, allocations: 216.1 kB / 326.7 MB, free: 1.234 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002458/0.2728, allocations: 61.97 kB / 326.7 MB, free: 1.191 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.739e-05/0.2728, allocations: 0 / 326.7 MB, free: 1.191 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 2.64e-05/0.2729, allocations: 0 / 326.7 MB, free: 1.191 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 7.762e-05/0.273, allocations: 16.42 kB / 326.7 MB, free: 1.184 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001571/0.2731, allocations: 19.7 kB / 326.8 MB, free: 1.172 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 5.623e-05/0.2732, allocations: 12.77 kB / 326.8 MB, free: 1.168 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.139e-05/0.2733, allocations: 0 / 326.8 MB, free: 1.168 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.154e-05/0.2733, allocations: 19.31 kB / 326.8 MB, free: 1.156 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.398e-05/0.2734, allocations: 19.23 kB / 326.8 MB, free: 1.148 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 1.879e-05/0.2734, allocations: 0.9375 kB / 326.8 MB, free: 1.148 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.258e-05/0.2734, allocations: 8.859 kB / 326.8 MB, free: 1.145 MB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 3.157e-05/0.2735, allocations: 2.906 kB / 326.8 MB, free: 1.145 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 2.515e-05/0.2735, allocations: 27.61 kB / 326.9 MB, free: 1.113 MB / 254.1 MB Notification: Performance of NFConvertDAE.convert: time 8.041e-05/0.2736, allocations: 25 kB / 326.9 MB, free: 1.098 MB / 254.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.2736, allocations: 5.188 kB / 326.9 MB, free: 1.094 MB / 254.1 MB Notification: Performance of FrontEnd: time 3.457e-06/0.2736, allocations: 0 / 326.9 MB, free: 1.094 MB / 254.1 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.2736, allocations: 3.938 kB / 326.9 MB, free: 1.09 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.0003143/0.274, allocations: 349.8 kB / 327.2 MB, free: 0.7031 MB / 254.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.274, allocations: 9.875 kB / 327.2 MB, free: 0.7031 MB / 254.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.11e-05/0.274, allocations: 1.781 kB / 327.2 MB, free: 0.7031 MB / 254.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.489e-05/0.2741, allocations: 169.1 kB / 327.4 MB, free: 0.5 MB / 254.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/0.2742, allocations: 9.25 kB / 327.4 MB, free: 0.4922 MB / 254.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.343e-05/0.2742, allocations: 5.188 kB / 327.4 MB, free: 500 kB / 254.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001349/0.2743, allocations: 66.88 kB / 327.5 MB, free: 452 kB / 254.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.2743, allocations: 0 / 327.5 MB, free: 452 kB / 254.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.887e-06/0.2744, allocations: 1.344 kB / 327.5 MB, free: 452 kB / 254.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.2744, allocations: 0 / 327.5 MB, free: 452 kB / 254.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.914e-05/0.2744, allocations: 26.39 kB / 327.5 MB, free: 448 kB / 254.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001103/0.2745, allocations: 159.2 kB / 327.7 MB, free: 244 kB / 254.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.021e-05/0.2746, allocations: 46.91 kB / 327.7 MB, free: 212 kB / 254.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.731e-05/0.2746, allocations: 35.39 kB / 327.8 MB, free: 196 kB / 254.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.216e-06/0.2746, allocations: 5.375 kB / 327.8 MB, free: 192 kB / 254.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/0.2747, allocations: 61.5 kB / 327.8 MB, free: 116 kB / 254.1 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.2747, allocations: 0 / 327.8 MB, free: 116 kB / 254.1 MB Notification: Performance of matching and sorting (n=4): time 0.000289/0.275, allocations: 184.3 kB / 328 MB, free: 24 kB / 254.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.866e-05/0.2751, allocations: 78.7 kB / 328.1 MB, free: 15.93 MB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001102/0.2752, allocations: 118.5 kB / 328.2 MB, free: 15.82 MB / 270.1 MB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.2752, allocations: 27.14 kB / 328.2 MB, free: 15.79 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.126e-05/0.2753, allocations: 89.55 kB / 328.3 MB, free: 15.7 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.2753, allocations: 5.188 kB / 328.3 MB, free: 15.69 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.616e-06/0.2753, allocations: 1.281 kB / 328.3 MB, free: 15.69 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.2754, allocations: 312 kB / 328.6 MB, free: 15.38 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.794e-05/0.2755, allocations: 29.39 kB / 328.6 MB, free: 15.37 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.195e-05/0.2755, allocations: 29.95 kB / 328.7 MB, free: 15.36 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.077e-05/0.2756, allocations: 58.86 kB / 328.7 MB, free: 15.32 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2756, allocations: 0 / 328.7 MB, free: 15.32 MB / 270.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000151/0.2758, allocations: 156 kB / 328.9 MB, free: 15.24 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.691e-05/0.2758, allocations: 31.89 kB / 328.9 MB, free: 15.21 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.063e-05/0.2758, allocations: 15.88 kB / 328.9 MB, free: 15.19 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.2758, allocations: 2.688 kB / 328.9 MB, free: 15.19 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.31e-07/0.2758, allocations: 0 / 328.9 MB, free: 15.19 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.2759, allocations: 0 / 328.9 MB, free: 15.19 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.81e-05/0.2759, allocations: 0 / 328.9 MB, free: 15.19 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.2759, allocations: 2.688 kB / 328.9 MB, free: 15.19 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 (success1,success2,success3,success4) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001202/0.276, allocations: 147.6 kB / 329.1 MB, free: 15.04 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.133e-05/0.276, allocations: 3.281 kB / 329.1 MB, free: 15.04 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.733e-05/0.2761, allocations: 6.062 kB / 329.1 MB, free: 15.03 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.075e-06/0.2761, allocations: 11.89 kB / 329.1 MB, free: 15.02 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.2761, allocations: 0 / 329.1 MB, free: 15.02 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.2761, allocations: 1.156 kB / 329.1 MB, free: 15.02 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001234/0.2762, allocations: 164.2 kB / 329.3 MB, free: 14.82 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.2762, allocations: 0 / 329.3 MB, free: 14.82 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.2762, allocations: 1.156 kB / 329.3 MB, free: 14.82 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.272e-06/0.2762, allocations: 0 / 329.3 MB, free: 14.82 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.023e-05/0.2762, allocations: 2.344 kB / 329.3 MB, free: 14.82 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.2762, allocations: 1.031 kB / 329.3 MB, free: 14.82 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.2763, allocations: 4.203 kB / 329.3 MB, free: 14.81 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002886/0.2766, allocations: 203.6 kB / 329.5 MB, free: 14.68 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.623e-05/0.2766, allocations: 78.33 kB / 329.5 MB, free: 14.59 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.887e-05/0.2766, allocations: 5.875 kB / 329.5 MB, free: 14.58 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.218e-05/0.2766, allocations: 1.062 kB / 329.5 MB, free: 14.58 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.821e-05/0.2767, allocations: 5.047 kB / 329.6 MB, free: 14.58 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/0.2767, allocations: 2.406 kB / 329.6 MB, free: 14.58 MB / 270.1 MB Notification: Performance of sorting global known variables: time 5.449e-05/0.2768, allocations: 91.7 kB / 329.6 MB, free: 14.5 MB / 270.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2768, allocations: 0 / 329.6 MB, free: 14.5 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0001972/0.277, allocations: 13.41 kB / 329.7 MB, free: 14.49 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000472/0.2775, allocations: 133.6 kB / 329.8 MB, free: 14.38 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0002391/0.2777, allocations: 127.2 kB / 329.9 MB, free: 14.29 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.2777, allocations: 0 / 329.9 MB, free: 14.29 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.2778, allocations: 93.39 kB / 330 MB, free: 14.22 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001732/0.278, allocations: 12.53 kB / 330 MB, free: 14.21 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003727/0.2784, allocations: 150.2 kB / 330.2 MB, free: 14.08 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003225/0.2787, allocations: 0.6795 MB / 330.8 MB, free: 13.38 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 7.705e-06/0.2787, allocations: 1.188 kB / 330.8 MB, free: 13.38 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.092e-05/0.2788, allocations: 7.438 kB / 330.9 MB, free: 13.37 MB / 270.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2788, allocations: 0 / 330.9 MB, free: 13.37 MB / 270.1 MB Notification: Performance of Templates: time 0.00292/0.2817, allocations: 0.6134 MB / 331.5 MB, free: 13.07 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)