Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams.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.TestStreams,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestStreams") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002944/0.002943, allocations: 357.4 kB / 15.95 MB, free: 6.211 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.171/4.171, 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.003652/0.003651, allocations: 234.8 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.5168/0.5168, allocations: 80.03 MB / 0.5627 GB, free: 19.84 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006325/0.0006327, allocations: 23.97 kB / 0.6265 GB, free: 96.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1075, allocations: 54.85 MB / 0.6801 GB, free: 41.69 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4438/0.5514, allocations: 80.02 MB / 0.7582 GB, free: 5.273 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002226/0.5517, allocations: 62.41 kB / 0.7583 GB, free: 5.242 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008561/0.5602, allocations: 2.213 MB / 0.7604 GB, free: 3.355 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5603, allocations: 0 / 0.7604 GB, free: 3.355 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.671e-06/0.5603, allocations: 0 / 0.7604 GB, free: 3.355 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.0002791/0.5606, allocations: 368.6 kB / 0.7608 GB, free: 2.945 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.5607, allocations: 10.66 kB / 0.7608 GB, free: 2.938 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.513e-05/0.5607, allocations: 7.828 kB / 0.7608 GB, free: 2.934 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.644e-05/0.5608, allocations: 167.1 kB / 0.761 GB, free: 2.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.5608, allocations: 0 / 0.761 GB, free: 2.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.889e-06/0.5608, allocations: 0 / 0.761 GB, free: 2.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.512e-05/0.5609, allocations: 29.69 kB / 0.761 GB, free: 2.695 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.5609, allocations: 11.94 kB / 0.761 GB, free: 2.684 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.809e-06/0.561, allocations: 0 / 0.761 GB, free: 2.684 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.561, allocations: 0 / 0.761 GB, free: 2.684 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.124e-05/0.561, allocations: 3.953 kB / 0.761 GB, free: 2.68 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001119/0.5611, allocations: 141.7 kB / 0.7611 GB, free: 2.492 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.958e-05/0.5612, allocations: 22.42 kB / 0.7612 GB, free: 2.465 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.461e-05/0.5612, allocations: 4.859 kB / 0.7612 GB, free: 2.457 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.428e-06/0.5612, allocations: 0 / 0.7612 GB, free: 2.457 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.8e-05/0.5613, allocations: 68.31 kB / 0.7612 GB, free: 2.375 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.443e-06/0.5613, allocations: 0 / 0.7612 GB, free: 2.375 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001761/0.5615, allocations: 63.34 kB / 0.7613 GB, free: 2.301 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.38e-05/0.5615, allocations: 77.11 kB / 0.7614 GB, free: 2.207 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.596e-05/0.5615, allocations: 93.8 kB / 0.7615 GB, free: 2.109 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.207e-06/0.5616, allocations: 25.7 kB / 0.7615 GB, free: 2.078 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.858e-05/0.5616, allocations: 80.14 kB / 0.7616 GB, free: 1.996 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.284e-05/0.5616, allocations: 4.062 kB / 0.7616 GB, free: 1.992 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.156e-06/0.5616, allocations: 7.938 kB / 0.7616 GB, free: 1.984 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.423e-05/0.5617, allocations: 322.8 kB / 0.7619 GB, free: 1.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.046e-05/0.5617, allocations: 0 / 0.7619 GB, free: 1.66 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.236e-06/0.5617, allocations: 0 / 0.7619 GB, free: 1.66 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.668e-05/0.5618, allocations: 25.7 kB / 0.7619 GB, free: 1.629 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.5618, allocations: 4 kB / 0.7619 GB, free: 1.625 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.054e-05/0.5619, allocations: 63.22 kB / 0.762 GB, free: 1.555 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.692e-05/0.5619, allocations: 37.69 kB / 0.762 GB, free: 1.512 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.5619, allocations: 4.094 kB / 0.762 GB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.5619, allocations: 0 / 0.762 GB, free: 1.508 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.795e-06/0.562, allocations: 3.984 kB / 0.762 GB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.562, allocations: 0.5469 kB / 0.762 GB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.006e-05/0.562, allocations: 0 / 0.762 GB, free: 1.504 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.577e-06/0.562, allocations: 0 / 0.762 GB, free: 1.504 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 7.335e-05/0.5621, allocations: 140.3 kB / 0.7621 GB, free: 1.352 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.799e-06/0.5621, allocations: 0 / 0.7621 GB, free: 1.352 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.712e-05/0.5622, allocations: 7.078 kB / 0.7621 GB, free: 1.344 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.5622, allocations: 4 kB / 0.7622 GB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.5622, allocations: 4 kB / 0.7622 GB, free: 1.336 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.5622, allocations: 3.984 kB / 0.7622 GB, free: 1.332 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.013e-05/0.5623, allocations: 145.6 kB / 0.7623 GB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.5623, allocations: 0 / 0.7623 GB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.232e-06/0.5623, allocations: 0 / 0.7623 GB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.5623, allocations: 0 / 0.7623 GB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.878e-06/0.5623, allocations: 4 kB / 0.7623 GB, free: 1.137 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.5623, allocations: 0 / 0.7623 GB, free: 1.137 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.5623, allocations: 0 / 0.7623 GB, free: 1.137 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001072/0.5625, allocations: 102.2 kB / 0.7624 GB, free: 1.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.06e-05/0.5625, allocations: 81.11 kB / 0.7625 GB, free: 0.9219 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.622e-05/0.5625, allocations: 4 kB / 0.7625 GB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.311e-05/0.5625, allocations: 0 / 0.7625 GB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.353e-05/0.5626, allocations: 3.984 kB / 0.7625 GB, free: 0.9141 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.5626, allocations: 0 / 0.7625 GB, free: 0.9141 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.867e-05/0.5626, allocations: 79.28 kB / 0.7626 GB, free: 0.8359 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.332e-06/0.5626, allocations: 0 / 0.7626 GB, free: 0.8359 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003764/0.563, allocations: 47.89 kB / 0.7626 GB, free: 0.793 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.0007142/0.5637, allocations: 280.7 kB / 0.7629 GB, free: 0.5781 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001121/0.5639, allocations: 59.34 kB / 0.7629 GB, free: 0.5078 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.5639, allocations: 0 / 0.7629 GB, free: 0.5078 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 3.211e-05/0.564, allocations: 59.28 kB / 0.763 GB, free: 452 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001571/0.5641, allocations: 8.078 kB / 0.763 GB, free: 444 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000179/0.5643, allocations: 79.25 kB / 0.7631 GB, free: 336 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000218/0.5646, allocations: 0.6692 MB / 0.7637 GB, free: 15.63 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.574e-06/0.5646, allocations: 3.984 kB / 0.7637 GB, free: 15.63 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.371e-05/0.5646, allocations: 11.44 kB / 0.7637 GB, free: 15.62 MB / 362.7 MB Notification: Performance of SimCode: time 8.42e-07/0.5646, allocations: 3.938 kB / 0.7637 GB, free: 15.61 MB / 362.7 MB Notification: Performance of Templates: time 0.006253/0.5709, allocations: 0.9246 MB / 0.7646 GB, free: 14.7 MB / 362.7 MB