Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.conf.json Using package ModelicaTest with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.003876/0.003883, allocations: 362.7 kB / 15.95 MB, free: 6.203 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 4.079/4.079, allocations: 388.9 MB / 405.6 MB, free: 10.25 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003536/0.003536, allocations: 222 kB / 451 MB, free: 145.1 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.5936/0.5936, allocations: 80.02 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004543/0.0004544, allocations: 12 kB / 0.6265 GB, free: 96.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09746/0.09794, allocations: 54.86 MB / 0.6801 GB, free: 41.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4964/0.5944, allocations: 79.65 MB / 0.7579 GB, free: 5.605 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003504/0.5948, allocations: 70.27 kB / 0.7579 GB, free: 5.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007588/0.6025, allocations: 1.38 MB / 0.7593 GB, free: 4.379 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.366e-06/0.6025, allocations: 0 / 0.7593 GB, free: 4.379 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.6026, allocations: 0 / 0.7593 GB, free: 4.379 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003584/0.6029, allocations: 366.9 kB / 0.7596 GB, free: 3.977 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.755e-05/0.603, allocations: 11.97 kB / 0.7596 GB, free: 3.965 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.105e-05/0.6031, allocations: 3.953 kB / 0.7596 GB, free: 3.961 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.757e-05/0.6032, allocations: 159.1 kB / 0.7598 GB, free: 3.766 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.6032, allocations: 9.516 kB / 0.7598 GB, free: 3.758 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.739e-05/0.6032, allocations: 4 kB / 0.7598 GB, free: 3.754 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000107/0.6034, allocations: 25.7 kB / 0.7598 GB, free: 3.723 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.104e-05/0.6034, allocations: 4 kB / 0.7598 GB, free: 3.719 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.737e-05/0.6034, allocations: 4 kB / 0.7598 GB, free: 3.715 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.6035, allocations: 0 / 0.7598 GB, free: 3.715 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.015e-05/0.6035, allocations: 3.953 kB / 0.7598 GB, free: 3.711 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001761/0.6037, allocations: 149.4 kB / 0.76 GB, free: 3.52 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.522e-05/0.6038, allocations: 22.55 kB / 0.76 GB, free: 3.488 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.257e-05/0.6038, allocations: 4.859 kB / 0.76 GB, free: 3.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.183e-05/0.6038, allocations: 0 / 0.76 GB, free: 3.48 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.711e-05/0.6039, allocations: 64.33 kB / 0.7601 GB, free: 3.402 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 2.605e-06/0.6039, allocations: 0 / 0.7601 GB, free: 3.402 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002256/0.6042, allocations: 62.39 kB / 0.7601 GB, free: 3.332 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.381e-05/0.6042, allocations: 85.05 kB / 0.7602 GB, free: 3.23 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.001e-05/0.6043, allocations: 89.86 kB / 0.7603 GB, free: 3.133 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.6043, allocations: 25.7 kB / 0.7603 GB, free: 3.102 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.148e-05/0.6044, allocations: 84.12 kB / 0.7604 GB, free: 3.016 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.71e-05/0.6044, allocations: 0 / 0.7604 GB, free: 3.016 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-06/0.6044, allocations: 4.125 kB / 0.7604 GB, free: 3.012 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.854e-05/0.6045, allocations: 317.7 kB / 0.7607 GB, free: 2.695 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.834e-05/0.6045, allocations: 4 kB / 0.7607 GB, free: 2.691 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.154e-05/0.6046, allocations: 0 / 0.7607 GB, free: 2.691 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.635e-05/0.6046, allocations: 33.62 kB / 0.7607 GB, free: 2.652 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.6046, allocations: 0 / 0.7607 GB, free: 2.652 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001104/0.6048, allocations: 62.59 kB / 0.7608 GB, free: 2.582 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.274e-05/0.6048, allocations: 29.7 kB / 0.7608 GB, free: 2.547 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.6049, allocations: 8.094 kB / 0.7608 GB, free: 2.539 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.104e-05/0.6049, allocations: 0 / 0.7608 GB, free: 2.539 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.154e-06/0.6049, allocations: 0 / 0.7608 GB, free: 2.539 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.04e-05/0.6049, allocations: 7.922 kB / 0.7608 GB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.029e-05/0.605, allocations: 0 / 0.7608 GB, free: 2.531 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.307e-05/0.605, allocations: 0 / 0.7608 GB, free: 2.531 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * 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.0001118/0.6051, allocations: 144.2 kB / 0.761 GB, free: 2.375 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.62e-05/0.6052, allocations: 0 / 0.761 GB, free: 2.375 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.989e-05/0.6052, allocations: 7.078 kB / 0.761 GB, free: 2.367 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.6052, allocations: 4 kB / 0.761 GB, free: 2.363 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.6052, allocations: 0 / 0.761 GB, free: 2.363 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.6053, allocations: 4 kB / 0.761 GB, free: 2.359 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001005/0.6054, allocations: 153.1 kB / 0.7611 GB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.474e-06/0.6054, allocations: 0 / 0.7611 GB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.783e-06/0.6054, allocations: 0 / 0.7611 GB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.6054, allocations: 0 / 0.7611 GB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.6055, allocations: 0 / 0.7611 GB, free: 2.164 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.41e-06/0.6055, allocations: 7.984 kB / 0.7611 GB, free: 2.156 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.6055, allocations: 0 / 0.7611 GB, free: 2.156 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001561/0.6057, allocations: 94.22 kB / 0.7612 GB, free: 2.043 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.882e-05/0.6057, allocations: 77.11 kB / 0.7613 GB, free: 1.949 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.267e-05/0.6058, allocations: 4 kB / 0.7613 GB, free: 1.945 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.325e-05/0.6058, allocations: 0 / 0.7613 GB, free: 1.945 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.531e-05/0.6058, allocations: 3.938 kB / 0.7613 GB, free: 1.941 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.6059, allocations: 0 / 0.7613 GB, free: 1.941 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.08e-05/0.6059, allocations: 75.28 kB / 0.7614 GB, free: 1.867 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6059, allocations: 0 / 0.7614 GB, free: 1.867 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004761/0.6064, allocations: 31.33 kB / 0.7614 GB, free: 1.84 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * 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.0007261/0.6072, allocations: 205.2 kB / 0.7616 GB, free: 1.672 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001358/0.6073, allocations: 55.41 kB / 0.7617 GB, free: 1.605 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.6074, allocations: 0 / 0.7617 GB, free: 1.605 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.197e-05/0.6074, allocations: 55.41 kB / 0.7617 GB, free: 1.539 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002868/0.6077, allocations: 3.953 kB / 0.7617 GB, free: 1.535 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002275/0.608, allocations: 94.5 kB / 0.7618 GB, free: 1.418 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000135/0.6081, allocations: 0.6692 MB / 0.7625 GB, free: 0.7227 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.618e-06/0.6082, allocations: 128 / 0.7625 GB, free: 0.7227 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.654e-05/0.6082, allocations: 15.44 kB / 0.7625 GB, free: 0.707 MB / 346.7 MB Notification: Performance of SimCode: time 1.162e-06/0.6082, allocations: 0 / 0.7625 GB, free: 0.707 MB / 346.7 MB Notification: Performance of Templates: time 0.005549/0.6138, allocations: 0.5626 MB / 0.763 GB, free: 160 kB / 346.7 MB