Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Ideal.v|With_Ron_Goff.v|With_Ron_Goff_Vknee.v",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadModel(Modelica): time 1.783/1.783, allocations: 171.1 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000351/0.000351, allocations: 12 kB / 233.8 MB, free: 0.9805 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08785/0.08823, allocations: 38.77 MB / 272.5 MB, free: 10.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3342/0.4225, allocations: 67.87 MB / 340.4 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002894/0.4228, allocations: 75.97 kB / 340.5 MB, free: 15.19 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02692/0.4498, allocations: 6.076 MB / 346.6 MB, free: 9.094 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4498, allocations: 0 / 346.6 MB, free: 9.094 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.049e-05/0.4499, allocations: 8 kB / 346.6 MB, free: 9.086 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.00156/0.4514, allocations: 0.6621 MB / 347.2 MB, free: 8.375 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.4515, allocations: 8.031 kB / 347.2 MB, free: 8.367 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001426/0.4516, allocations: 51.42 kB / 347.3 MB, free: 8.316 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005543/0.4522, allocations: 302.5 kB / 347.6 MB, free: 7.98 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.069e-05/0.4523, allocations: 24.66 kB / 347.6 MB, free: 7.953 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.706e-05/0.4524, allocations: 32 kB / 347.6 MB, free: 7.922 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.4535, allocations: 358.7 kB / 348 MB, free: 7.555 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.4535, allocations: 0 / 348 MB, free: 7.555 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.409e-05/0.4536, allocations: 19.98 kB / 348 MB, free: 7.535 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.436e-05/0.4536, allocations: 8 kB / 348 MB, free: 7.527 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/0.4546, allocations: 282.4 kB / 348.3 MB, free: 7.25 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003433/0.4581, allocations: 1.438 MB / 349.7 MB, free: 5.715 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007387/0.4589, allocations: 226.4 kB / 350 MB, free: 5.484 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.569e-05/0.4589, allocations: 4 kB / 350 MB, free: 5.48 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.237e-05/0.459, allocations: 46.44 kB / 350 MB, free: 5.426 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 2.375e-06/0.459, allocations: 4 kB / 350 MB, free: 5.422 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.002654/0.4617, allocations: 0.7062 MB / 350.7 MB, free: 4.645 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.4618, allocations: 55.41 kB / 350.8 MB, free: 4.578 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000537/0.4623, allocations: 304.6 kB / 351.1 MB, free: 4.27 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.481e-05/0.4624, allocations: 37.69 kB / 351.1 MB, free: 4.227 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001839/0.4626, allocations: 262.5 kB / 351.4 MB, free: 3.969 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.999e-05/0.4627, allocations: 74.91 kB / 351.4 MB, free: 3.895 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-05/0.4627, allocations: 8 kB / 351.4 MB, free: 3.887 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.4629, allocations: 314.8 kB / 351.8 MB, free: 3.57 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003663/0.4632, allocations: 83.95 kB / 351.8 MB, free: 3.488 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003964/0.4637, allocations: 140.2 kB / 352 MB, free: 3.336 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003805/0.464, allocations: 87.92 kB / 352.1 MB, free: 3.25 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.4641, allocations: 4 kB / 352.1 MB, free: 3.246 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001365/0.4654, allocations: 355.8 kB / 352.4 MB, free: 2.883 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.4655, allocations: 4.625 kB / 352.4 MB, free: 2.879 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.065e-06/0.4655, allocations: 0 / 352.4 MB, free: 2.879 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006615/0.4662, allocations: 122.4 kB / 352.5 MB, free: 2.75 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003174/0.4665, allocations: 27.98 kB / 352.6 MB, free: 2.723 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00565/0.4722, allocations: 4.492 MB / 357.1 MB, free: 13.83 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004333/0.4727, allocations: 27.83 kB / 357.1 MB, free: 13.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.022e-05/0.4727, allocations: 4 kB / 357.1 MB, free: 13.8 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003061/0.473, allocations: 149.8 kB / 357.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.43e-05/0.4731, allocations: 39.81 kB / 357.3 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.68e-05/0.4732, allocations: 35.55 kB / 357.3 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.4733, allocations: 4 kB / 357.3 MB, free: 13.56 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.4733, allocations: 7.891 kB / 357.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.4733, allocations: 3.984 kB / 357.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006464/0.4739, allocations: 377.3 kB / 357.7 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.474, allocations: 0 / 357.7 MB, free: 13.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002371/0.4742, allocations: 31.92 kB / 357.7 MB, free: 13.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005761/0.4748, allocations: 122.5 kB / 357.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.795e-05/0.4749, allocations: 4 kB / 357.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005722/0.4806, allocations: 4.466 MB / 362.3 MB, free: 8.098 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.4806, allocations: 0 / 362.3 MB, free: 8.098 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001159/0.4818, allocations: 422.2 kB / 362.7 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002205/0.4821, allocations: 124.6 kB / 362.8 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.908e-05/0.4822, allocations: 11.98 kB / 362.9 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004048/0.4826, allocations: 27.98 kB / 362.9 MB, free: 7.48 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/0.4827, allocations: 19.97 kB / 362.9 MB, free: 7.461 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.939e-05/0.4828, allocations: 11.94 kB / 362.9 MB, free: 7.449 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003725/0.4831, allocations: 227 kB / 363.1 MB, free: 7.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.4832, allocations: 0 / 363.1 MB, free: 7.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009689/0.4841, allocations: 115.7 kB / 363.2 MB, free: 7.117 MB / 298.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: 3 (Ideal.off,With_Ron_Goff.off,With_Ron_Goff_Vknee.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001906/0.4843, allocations: 107.2 kB / 363.3 MB, free: 7.004 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001523/0.4859, allocations: 0.5822 MB / 363.9 MB, free: 6.383 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.4859, allocations: 0 / 363.9 MB, free: 6.383 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008732/0.4868, allocations: 488 kB / 364.4 MB, free: 5.867 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006133/0.4874, allocations: 45.97 kB / 364.5 MB, free: 5.824 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/0.4894, allocations: 0.801 MB / 365.3 MB, free: 4.992 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004905/0.49, allocations: 0.8107 MB / 366.1 MB, free: 4.156 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.4901, allocations: 23.44 kB / 366.1 MB, free: 4.133 MB / 298.7 MB Notification: Performance of SimCode: time 4.428e-06/0.4901, allocations: 0 / 366.1 MB, free: 4.133 MB / 298.7 MB Notification: Performance of Templates: time 0.0164/0.5065, allocations: 7.958 MB / 374 MB, free: 12.17 MB / 314.7 MB