Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.681/1.681, allocations: 171.2 MB / 186.8 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003665/0.0003667, allocations: 8 kB / 233.2 MB, free: 3.008 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06952/0.06991, allocations: 38.77 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2837/0.3537, allocations: 67.88 MB / 339.9 MB, free: 6.066 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002292/0.3539, allocations: 74.08 kB / 340 MB, free: 6.027 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02323/0.3772, allocations: 6.074 MB / 346 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.593e-06/0.3772, allocations: 192 / 346 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.128e-05/0.3773, allocations: 8 kB / 346 MB, free: 0.832 MB / 266.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.001213/0.3785, allocations: 0.6684 MB / 346.7 MB, free: 144 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/0.3785, allocations: 8.031 kB / 346.7 MB, free: 136 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001173/0.3787, allocations: 47.44 kB / 346.8 MB, free: 88 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004971/0.3792, allocations: 298.2 kB / 347.1 MB, free: 15.78 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.512e-05/0.3792, allocations: 27.97 kB / 347.1 MB, free: 15.76 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.214e-05/0.3793, allocations: 35.25 kB / 347.1 MB, free: 15.74 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008186/0.3801, allocations: 350.2 kB / 347.5 MB, free: 15.48 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.3802, allocations: 7.984 kB / 347.5 MB, free: 15.47 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.177e-05/0.3802, allocations: 7.5 kB / 347.5 MB, free: 15.47 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.591e-05/0.3803, allocations: 12 kB / 347.5 MB, free: 15.46 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008118/0.3811, allocations: 282 kB / 347.8 MB, free: 15.26 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002609/0.3837, allocations: 1.442 MB / 349.2 MB, free: 13.95 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005761/0.3843, allocations: 227.5 kB / 349.4 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.3844, allocations: 4 kB / 349.4 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.079e-05/0.3844, allocations: 41.95 kB / 349.5 MB, free: 13.74 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 3.387e-06/0.3844, allocations: 0 / 349.5 MB, free: 13.74 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.001953/0.3864, allocations: 0.708 MB / 350.2 MB, free: 13.05 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.803e-05/0.3865, allocations: 55.34 kB / 350.2 MB, free: 12.99 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004242/0.3869, allocations: 274.3 kB / 350.5 MB, free: 12.76 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.783e-05/0.387, allocations: 33.08 kB / 350.5 MB, free: 12.72 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001807/0.3872, allocations: 260.8 kB / 350.8 MB, free: 12.5 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.607e-05/0.3873, allocations: 81.83 kB / 350.9 MB, free: 12.43 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.784e-05/0.3873, allocations: 3.5 kB / 350.9 MB, free: 12.43 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.3875, allocations: 325.3 kB / 351.2 MB, free: 12.11 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002674/0.3877, allocations: 76.34 kB / 351.3 MB, free: 12.06 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003052/0.3881, allocations: 133.7 kB / 351.4 MB, free: 11.95 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002989/0.3884, allocations: 97.23 kB / 351.5 MB, free: 11.88 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.793e-06/0.3884, allocations: 0 / 351.5 MB, free: 11.88 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001046/0.3894, allocations: 354.8 kB / 351.8 MB, free: 11.6 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.047e-05/0.3895, allocations: 4 kB / 351.8 MB, free: 11.6 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.216e-06/0.3895, allocations: 0 / 351.8 MB, free: 11.6 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000561/0.3901, allocations: 113.4 kB / 352 MB, free: 11.5 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002319/0.3903, allocations: 35.91 kB / 352 MB, free: 11.47 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005507/0.3959, allocations: 4.489 MB / 356.5 MB, free: 6.883 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003519/0.3962, allocations: 31.58 kB / 356.5 MB, free: 6.855 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.439e-05/0.3963, allocations: 7.438 kB / 356.5 MB, free: 6.852 MB / 282.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.0002755/0.3966, allocations: 139.8 kB / 356.6 MB, free: 6.723 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.3967, allocations: 39.41 kB / 356.7 MB, free: 6.688 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.68e-05/0.3968, allocations: 36.8 kB / 356.7 MB, free: 6.664 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.331e-06/0.3968, allocations: 4 kB / 356.7 MB, free: 6.66 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.448e-06/0.3968, allocations: 3.984 kB / 356.7 MB, free: 6.656 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.3968, allocations: 7.938 kB / 356.7 MB, free: 6.648 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005941/0.3975, allocations: 375.3 kB / 357.1 MB, free: 6.305 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.215e-06/0.3975, allocations: 7.922 kB / 357.1 MB, free: 6.297 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001677/0.3977, allocations: 27.92 kB / 357.1 MB, free: 6.27 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004683/0.3981, allocations: 113.4 kB / 357.3 MB, free: 6.176 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.437e-05/0.3982, allocations: 7.062 kB / 357.3 MB, free: 6.172 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00521/0.4034, allocations: 4.476 MB / 361.7 MB, free: 1.598 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.68e-06/0.4034, allocations: 0 / 361.7 MB, free: 1.598 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009331/0.4044, allocations: 420.7 kB / 362.1 MB, free: 1.242 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002131/0.4046, allocations: 130.4 kB / 362.3 MB, free: 1.105 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.451e-05/0.4047, allocations: 7.5 kB / 362.3 MB, free: 1.102 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003045/0.405, allocations: 27.36 kB / 362.3 MB, free: 1.078 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.4051, allocations: 23.7 kB / 362.3 MB, free: 1.059 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.716e-05/0.4052, allocations: 7.312 kB / 362.3 MB, free: 1.055 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003166/0.4055, allocations: 218.4 kB / 362.5 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.47e-07/0.4055, allocations: 0 / 362.5 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009558/0.4065, allocations: 124.2 kB / 362.7 MB, free: 0.7734 MB / 282.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.0001666/0.4067, allocations: 110.8 kB / 362.8 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00121/0.4079, allocations: 0.5858 MB / 363.4 MB, free: 112 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.447e-06/0.4079, allocations: 0 / 363.4 MB, free: 112 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000782/0.4087, allocations: 484 kB / 363.8 MB, free: 15.64 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004616/0.4092, allocations: 41.8 kB / 363.9 MB, free: 15.62 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001612/0.4108, allocations: 0.8139 MB / 364.7 MB, free: 14.83 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005417/0.4114, allocations: 0.799 MB / 365.5 MB, free: 14 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001033/0.4115, allocations: 23.42 kB / 365.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of SimCode: time 1.76e-06/0.4115, allocations: 3.938 kB / 365.5 MB, free: 13.97 MB / 298.7 MB Notification: Performance of Templates: time 0.01318/0.4247, allocations: 7.964 MB / 373.5 MB, free: 6.055 MB / 298.7 MB