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.001639/0.001639, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001755/0.001755, allocations: 195.8 kB / 16.14 MB, free: 6.707 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.602/1.602, allocations: 205.1 MB / 222 MB, free: 4.992 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.001213/0.001213, allocations: 43.94 kB / 278 MB, free: 13.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3344, allocations: 46.62 MB / 324.7 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.WriteRealMatrixToFile): time 0.002646/0.3371, allocations: 0.5491 MB / 325.2 MB, free: 1.426 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004144/0.3376, allocations: 59.08 kB / 325.3 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.334e-05/0.3376, allocations: 1.406 kB / 325.3 MB, free: 1.387 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 4.058e-05/0.3377, allocations: 4 kB / 325.3 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001046/0.3378, allocations: 15.38 kB / 325.3 MB, free: 1.375 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002298/0.338, allocations: 20.11 kB / 325.3 MB, free: 1.363 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 7.685e-05/0.3381, allocations: 18.45 kB / 325.3 MB, free: 1.355 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.598e-05/0.3382, allocations: 2.594 kB / 325.3 MB, free: 1.355 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.073e-05/0.3382, allocations: 10.08 kB / 325.3 MB, free: 1.352 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001195/0.3384, allocations: 30.34 kB / 325.4 MB, free: 1.336 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 2.645e-05/0.3384, allocations: 4.938 kB / 325.4 MB, free: 1.332 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.809e-05/0.3385, allocations: 5.469 kB / 325.4 MB, free: 1.332 MB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 6.666e-05/0.3385, allocations: 6.984 kB / 325.4 MB, free: 1.328 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 4.221e-05/0.3386, allocations: 6.969 kB / 325.4 MB, free: 1.324 MB / 254.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001401/0.3387, allocations: 27.12 kB / 325.4 MB, free: 1.309 MB / 254.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.776e-06/0.3387, allocations: 1.531 kB / 325.4 MB, free: 1.309 MB / 254.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3388, allocations: 4 kB / 325.4 MB, free: 1.305 MB / 254.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.3388, allocations: 0 / 325.4 MB, free: 1.305 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.0004719/0.3392, allocations: 362.9 kB / 325.8 MB, free: 0.9062 MB / 254.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.469e-05/0.3393, allocations: 8.969 kB / 325.8 MB, free: 0.9062 MB / 254.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.829e-05/0.3394, allocations: 7.75 kB / 325.8 MB, free: 0.9023 MB / 254.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.3395, allocations: 173.8 kB / 326 MB, free: 0.6953 MB / 254.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.063e-05/0.3395, allocations: 1.656 kB / 326 MB, free: 0.6953 MB / 254.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.849e-05/0.3395, allocations: 1.844 kB / 326 MB, free: 0.6953 MB / 254.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001782/0.3397, allocations: 62.94 kB / 326 MB, free: 0.6523 MB / 254.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.3397, allocations: 192 / 326 MB, free: 0.6523 MB / 254.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/0.3398, allocations: 5.062 kB / 326 MB, free: 0.6484 MB / 254.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.266e-06/0.3398, allocations: 1.25 kB / 326 MB, free: 0.6484 MB / 254.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.057e-05/0.3398, allocations: 29.08 kB / 326.1 MB, free: 0.6406 MB / 254.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001613/0.34, allocations: 155 kB / 326.2 MB, free: 456 kB / 254.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.954e-05/0.3401, allocations: 50.95 kB / 326.3 MB, free: 420 kB / 254.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.464e-05/0.3402, allocations: 32.05 kB / 326.3 MB, free: 408 kB / 254.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.242e-05/0.3402, allocations: 5.938 kB / 326.3 MB, free: 404 kB / 254.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.12e-05/0.3402, allocations: 62.92 kB / 326.4 MB, free: 328 kB / 254.1 MB Notification: Performance of pre-optimization done (n=4): time 2.003e-06/0.3402, allocations: 7.922 kB / 326.4 MB, free: 320 kB / 254.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003734/0.3406, allocations: 186.3 kB / 326.6 MB, free: 224 kB / 254.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.3407, allocations: 83.44 kB / 326.6 MB, free: 124 kB / 254.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.742e-05/0.3408, allocations: 114.8 kB / 326.7 MB, free: 12 kB / 254.1 MB Notification: Performance of collectPreVariables (initialization): time 5.977e-05/0.3408, allocations: 25.7 kB / 326.8 MB, free: 15.98 MB / 270.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.611e-05/0.3409, allocations: 82.02 kB / 326.9 MB, free: 15.9 MB / 270.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.647e-05/0.3409, allocations: 9.875 kB / 326.9 MB, free: 15.89 MB / 270.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.496e-05/0.341, allocations: 20 kB / 326.9 MB, free: 15.87 MB / 270.1 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.3412, allocations: 316 kB / 327.2 MB, free: 15.55 MB / 270.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.019e-05/0.3412, allocations: 29.89 kB / 327.2 MB, free: 15.55 MB / 270.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.377e-05/0.3413, allocations: 22.25 kB / 327.2 MB, free: 15.55 MB / 270.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001502/0.3414, allocations: 120.5 kB / 327.4 MB, free: 15.46 MB / 270.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.3414, allocations: 0 / 327.4 MB, free: 15.46 MB / 270.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002311/0.3417, allocations: 151.9 kB / 327.5 MB, free: 15.38 MB / 270.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.7e-05/0.3417, allocations: 36.19 kB / 327.5 MB, free: 15.34 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.737e-06/0.3418, allocations: 9.406 kB / 327.6 MB, free: 15.34 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.3418, allocations: 0 / 327.6 MB, free: 15.34 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.3418, allocations: 0 / 327.6 MB, free: 15.34 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.3418, allocations: 0 / 327.6 MB, free: 15.34 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.171e-05/0.3418, allocations: 2.688 kB / 327.6 MB, free: 15.34 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.309e-05/0.3419, allocations: 1.281 kB / 327.6 MB, free: 15.34 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.0001415/0.342, allocations: 147.9 kB / 327.7 MB, free: 15.18 MB / 270.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.681e-05/0.342, allocations: 7.312 kB / 327.7 MB, free: 15.18 MB / 270.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.376e-05/0.3421, allocations: 13.06 kB / 327.7 MB, free: 15.16 MB / 270.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.3421, allocations: 5.531 kB / 327.7 MB, free: 15.16 MB / 270.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.3421, allocations: 0 / 327.7 MB, free: 15.16 MB / 270.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.3421, allocations: 3.984 kB / 327.7 MB, free: 15.16 MB / 270.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001505/0.3422, allocations: 152.6 kB / 327.9 MB, free: 14.96 MB / 270.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.3423, allocations: 4.875 kB / 327.9 MB, free: 14.96 MB / 270.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.042e-06/0.3423, allocations: 0 / 327.9 MB, free: 14.96 MB / 270.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.3423, allocations: 0.9375 kB / 327.9 MB, free: 14.96 MB / 270.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.202e-05/0.3423, allocations: 9.812 kB / 327.9 MB, free: 14.95 MB / 270.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.563e-06/0.3423, allocations: 4.75 kB / 327.9 MB, free: 14.95 MB / 270.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.3423, allocations: 3.938 kB / 327.9 MB, free: 14.95 MB / 270.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002575/0.3426, allocations: 196.7 kB / 328.1 MB, free: 14.82 MB / 270.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.808e-05/0.3426, allocations: 81.02 kB / 328.2 MB, free: 14.72 MB / 270.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.523e-05/0.3427, allocations: 7.562 kB / 328.2 MB, free: 14.72 MB / 270.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.147e-05/0.3427, allocations: 0 / 328.2 MB, free: 14.72 MB / 270.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.007e-05/0.3427, allocations: 7.828 kB / 328.2 MB, free: 14.71 MB / 270.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.3427, allocations: 0 / 328.2 MB, free: 14.71 MB / 270.1 MB Notification: Performance of sorting global known variables: time 5.612e-05/0.3428, allocations: 89.69 kB / 328.3 MB, free: 14.64 MB / 270.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3428, allocations: 0 / 328.3 MB, free: 14.64 MB / 270.1 MB Notification: Performance of remove unused functions: time 0.0002055/0.343, allocations: 15.03 kB / 328.3 MB, free: 14.63 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.0003873/0.3434, allocations: 130.8 kB / 328.4 MB, free: 14.52 MB / 270.1 MB Notification: Performance of simCode: created initialization part: time 0.0002386/0.3437, allocations: 126 kB / 328.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.3437, allocations: 1.219 kB / 328.5 MB, free: 14.43 MB / 270.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001079/0.3438, allocations: 98.53 kB / 328.6 MB, free: 14.36 MB / 270.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001649/0.344, allocations: 7.594 kB / 328.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003669/0.3443, allocations: 142.5 kB / 328.8 MB, free: 14.23 MB / 270.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003468/0.3447, allocations: 0.6839 MB / 329.5 MB, free: 13.52 MB / 270.1 MB Notification: Performance of simCode: alias equations: time 1.207e-05/0.3447, allocations: 1.5 kB / 329.5 MB, free: 13.52 MB / 270.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.275e-05/0.3447, allocations: 11.38 kB / 329.5 MB, free: 13.51 MB / 270.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3447, allocations: 0 / 329.5 MB, free: 13.51 MB / 270.1 MB Notification: Performance of Templates: time 0.003544/0.3483, allocations: 0.6482 MB / 330.1 MB, free: 13.19 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)