Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal.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.TestInternal,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestInternal") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.002931/0.002931, allocations: 357.4 kB / 15.95 MB, free: 6.207 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.057/4.057, allocations: 388.9 MB / 405.6 MB, free: 9.578 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.003516/0.003516, allocations: 235 kB / 451 MB, free: 145 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.5372/0.5372, allocations: 80.03 MB / 0.5627 GB, free: 19.76 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007289/0.0007292, allocations: 12 kB / 0.6265 GB, free: 96.53 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1385, allocations: 54.87 MB / 0.6801 GB, free: 41.65 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4766/0.6152, allocations: 79.79 MB / 0.758 GB, free: 5.527 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002071/0.6155, allocations: 62.53 kB / 0.7581 GB, free: 5.496 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005432/0.6209, allocations: 1.601 MB / 0.7596 GB, free: 4.125 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.6209, allocations: 0.9688 kB / 0.7596 GB, free: 4.125 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.621, allocations: 0 / 0.7596 GB, free: 4.125 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.0002415/0.6212, allocations: 358.6 kB / 0.76 GB, free: 3.723 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.6213, allocations: 8.031 kB / 0.76 GB, free: 3.715 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.53e-05/0.6213, allocations: 15.08 kB / 0.76 GB, free: 3.703 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.28e-05/0.6214, allocations: 163 kB / 0.7601 GB, free: 3.504 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.6214, allocations: 3.25 kB / 0.7602 GB, free: 3.504 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.548e-06/0.6214, allocations: 0 / 0.7602 GB, free: 3.504 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.696e-05/0.6215, allocations: 29.7 kB / 0.7602 GB, free: 3.469 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.6215, allocations: 0 / 0.7602 GB, free: 3.469 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.666e-06/0.6216, allocations: 0 / 0.7602 GB, free: 3.469 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.6216, allocations: 0 / 0.7602 GB, free: 3.469 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.935e-05/0.6216, allocations: 11.94 kB / 0.7602 GB, free: 3.457 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.934e-05/0.6217, allocations: 145.7 kB / 0.7603 GB, free: 3.266 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.028e-05/0.6218, allocations: 25.77 kB / 0.7604 GB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.505e-05/0.6218, allocations: 4.859 kB / 0.7604 GB, free: 3.227 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.907e-06/0.6218, allocations: 3.984 kB / 0.7604 GB, free: 3.223 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.34e-05/0.6218, allocations: 61.11 kB / 0.7604 GB, free: 3.148 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 1.653e-06/0.6218, allocations: 4 kB / 0.7604 GB, free: 3.145 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001598/0.622, allocations: 66.52 kB / 0.7605 GB, free: 3.07 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.04e-05/0.6221, allocations: 77.11 kB / 0.7606 GB, free: 2.977 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.297e-05/0.6221, allocations: 89.86 kB / 0.7606 GB, free: 2.879 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.486e-06/0.6221, allocations: 25.7 kB / 0.7607 GB, free: 2.848 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.498e-05/0.6221, allocations: 80.14 kB / 0.7607 GB, free: 2.766 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.605e-05/0.6222, allocations: 3.984 kB / 0.7608 GB, free: 2.762 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.585e-06/0.6222, allocations: 3.938 kB / 0.7608 GB, free: 2.758 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.608e-05/0.6223, allocations: 322.9 kB / 0.7611 GB, free: 2.434 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.008e-05/0.6223, allocations: 0 / 0.7611 GB, free: 2.434 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.436e-06/0.6223, allocations: 3.984 kB / 0.7611 GB, free: 2.43 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.588e-05/0.6223, allocations: 32.95 kB / 0.7611 GB, free: 2.395 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.6224, allocations: 0 / 0.7611 GB, free: 2.395 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.75e-05/0.6224, allocations: 55.41 kB / 0.7612 GB, free: 2.328 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.886e-05/0.6225, allocations: 33.7 kB / 0.7612 GB, free: 2.289 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.158e-06/0.6225, allocations: 0 / 0.7612 GB, free: 2.289 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.358e-05/0.6225, allocations: 0 / 0.7612 GB, free: 2.289 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.252e-06/0.6225, allocations: 96 / 0.7612 GB, free: 2.289 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.371e-06/0.6225, allocations: 7.984 kB / 0.7612 GB, free: 2.281 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.706e-05/0.6226, allocations: 1.125 kB / 0.7612 GB, free: 2.281 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.698e-06/0.6226, allocations: 7.984 kB / 0.7612 GB, free: 2.273 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 6.774e-05/0.6227, allocations: 140.2 kB / 0.7613 GB, free: 2.125 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.917e-06/0.6227, allocations: 3.938 kB / 0.7613 GB, free: 2.121 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.475e-05/0.6227, allocations: 7.078 kB / 0.7613 GB, free: 2.113 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.6227, allocations: 7.938 kB / 0.7614 GB, free: 2.105 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.6227, allocations: 0 / 0.7614 GB, free: 2.105 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.6227, allocations: 4 kB / 0.7614 GB, free: 2.102 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.443e-05/0.6228, allocations: 149.6 kB / 0.7615 GB, free: 1.906 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.6228, allocations: 0 / 0.7615 GB, free: 1.906 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.044e-06/0.6228, allocations: 0.875 kB / 0.7615 GB, free: 1.906 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.6228, allocations: 0 / 0.7615 GB, free: 1.906 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.6229, allocations: 4 kB / 0.7615 GB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.6229, allocations: 0 / 0.7615 GB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.6229, allocations: 0 / 0.7615 GB, free: 1.902 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.155e-05/0.623, allocations: 98.53 kB / 0.7616 GB, free: 1.785 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.048e-05/0.623, allocations: 77.11 kB / 0.7617 GB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.56e-05/0.623, allocations: 4 kB / 0.7617 GB, free: 1.688 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.152e-05/0.623, allocations: 0 / 0.7617 GB, free: 1.688 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.757e-05/0.6231, allocations: 3.938 kB / 0.7617 GB, free: 1.684 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.54e-06/0.6231, allocations: 4 kB / 0.7617 GB, free: 1.68 MB / 346.7 MB Notification: Performance of sorting global known variables: time 1.508e-05/0.6231, allocations: 75.28 kB / 0.7618 GB, free: 1.605 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6231, allocations: 0 / 0.7618 GB, free: 1.605 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000275/0.6234, allocations: 35.17 kB / 0.7618 GB, free: 1.574 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.0006527/0.6241, allocations: 279.8 kB / 0.7621 GB, free: 1.367 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 8.655e-05/0.6242, allocations: 55.41 kB / 0.7621 GB, free: 1.301 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.6242, allocations: 4 kB / 0.7621 GB, free: 1.297 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.51e-05/0.6242, allocations: 55.39 kB / 0.7622 GB, free: 1.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001555/0.6244, allocations: 12.08 kB / 0.7622 GB, free: 1.219 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001538/0.6245, allocations: 79.08 kB / 0.7623 GB, free: 1.117 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001167/0.6247, allocations: 0.677 MB / 0.7629 GB, free: 424 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.991e-06/0.6247, allocations: 0 / 0.7629 GB, free: 424 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.163e-05/0.6247, allocations: 7.438 kB / 0.7629 GB, free: 416 kB / 346.7 MB Notification: Performance of SimCode: time 7.41e-07/0.6247, allocations: 0 / 0.7629 GB, free: 416 kB / 346.7 MB Notification: Performance of Templates: time 0.003935/0.6287, allocations: 0.7638 MB / 0.7637 GB, free: 15.65 MB / 362.7 MB