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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.723/1.723, allocations: 171.3 MB / 179.2 MB, free: 7.582 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.84e-05/2.846e-05, allocations: 4 kB / 222.5 MB, free: 8.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07222/0.07228, allocations: 38.77 MB / 261.3 MB, free: 1.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.337/0.4094, allocations: 67.14 MB / 328.4 MB, free: 5.121 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002366/0.4097, allocations: 71.27 kB / 328.5 MB, free: 5.082 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02959/0.4393, allocations: 6.008 MB / 334.5 MB, free: 32 kB / 266.7 MB Notification: Performance of FrontEnd: time 3.452e-06/0.4393, allocations: 0 / 334.5 MB, free: 32 kB / 266.7 MB Notification: Performance of Transformations before backend: time 4.15e-05/0.4394, allocations: 11.98 kB / 334.5 MB, free: 20 kB / 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.001358/0.4408, allocations: 0.6118 MB / 335.1 MB, free: 15.39 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.755e-05/0.4408, allocations: 12.39 kB / 335.1 MB, free: 15.38 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001676/0.441, allocations: 47.44 kB / 335.2 MB, free: 15.33 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005894/0.4416, allocations: 298 kB / 335.5 MB, free: 15.03 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/0.4417, allocations: 12 kB / 335.5 MB, free: 15.02 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.748e-05/0.4418, allocations: 19.94 kB / 335.5 MB, free: 15 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005998/0.4424, allocations: 218 kB / 335.7 MB, free: 14.86 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000679/0.4431, allocations: 285.2 kB / 336 MB, free: 14.64 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.4431, allocations: 2.625 kB / 336 MB, free: 14.64 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.951e-05/0.4431, allocations: 0 / 336 MB, free: 14.64 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.4432, allocations: 8 kB / 336 MB, free: 14.63 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002843/0.446, allocations: 1.365 MB / 337.4 MB, free: 13.38 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004647/0.4465, allocations: 205 kB / 337.6 MB, free: 13.24 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001957/0.4468, allocations: 84.28 kB / 337.6 MB, free: 13.19 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.747e-05/0.4468, allocations: 7.984 kB / 337.7 MB, free: 13.18 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.537e-05/0.4469, allocations: 38.5 kB / 337.7 MB, free: 13.14 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 4.002e-06/0.4469, allocations: 0 / 337.7 MB, free: 13.14 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006997/0.4476, allocations: 250.1 kB / 337.9 MB, free: 12.93 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.4477, allocations: 58.78 kB / 338 MB, free: 12.86 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003991/0.4481, allocations: 250 kB / 338.2 MB, free: 12.66 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.477e-05/0.4481, allocations: 25.7 kB / 338.3 MB, free: 12.62 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001867/0.4483, allocations: 261.3 kB / 338.5 MB, free: 12.41 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.448e-05/0.4484, allocations: 76.97 kB / 338.6 MB, free: 12.34 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.601e-05/0.4485, allocations: 0 / 338.6 MB, free: 12.34 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.4487, allocations: 317.8 kB / 338.9 MB, free: 12.02 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001764/0.4489, allocations: 68.06 kB / 339 MB, free: 11.98 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002084/0.4491, allocations: 97.22 kB / 339.1 MB, free: 11.9 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000185/0.4493, allocations: 63.73 kB / 339.1 MB, free: 11.86 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.528e-06/0.4493, allocations: 0 / 339.1 MB, free: 11.86 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008653/0.4502, allocations: 291.3 kB / 339.4 MB, free: 11.62 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.308e-05/0.4502, allocations: 8 kB / 339.4 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.4502, allocations: 0 / 339.4 MB, free: 11.62 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005456/0.4508, allocations: 113.6 kB / 339.5 MB, free: 11.52 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002472/0.4511, allocations: 39.19 kB / 339.6 MB, free: 11.49 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00515/0.4562, allocations: 4.266 MB / 343.8 MB, free: 7.137 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003649/0.4566, allocations: 27.88 kB / 343.9 MB, free: 7.109 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.605e-05/0.4567, allocations: 11.38 kB / 343.9 MB, free: 7.102 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 () * 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.0001696/0.4569, allocations: 112.9 kB / 344 MB, free: 6.984 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001037/0.457, allocations: 31.62 kB / 344 MB, free: 6.953 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.447e-05/0.4571, allocations: 29.92 kB / 344 MB, free: 6.934 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.324e-06/0.4571, allocations: 4 kB / 344.1 MB, free: 6.93 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.4572, allocations: 0 / 344.1 MB, free: 6.93 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.663e-06/0.4572, allocations: 0 / 344.1 MB, free: 6.93 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005878/0.4578, allocations: 324.3 kB / 344.4 MB, free: 6.637 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.394e-06/0.4578, allocations: 8 kB / 344.4 MB, free: 6.629 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001875/0.458, allocations: 23.94 kB / 344.4 MB, free: 6.605 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004856/0.4585, allocations: 108.8 kB / 344.5 MB, free: 6.516 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.303e-05/0.4585, allocations: 0 / 344.5 MB, free: 6.516 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005081/0.4636, allocations: 4.266 MB / 348.8 MB, free: 2.164 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.489e-06/0.4637, allocations: 0 / 348.8 MB, free: 2.164 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007101/0.4644, allocations: 351.3 kB / 349.1 MB, free: 1.855 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002348/0.4647, allocations: 128.1 kB / 349.2 MB, free: 1.723 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.027e-05/0.4647, allocations: 7.984 kB / 349.2 MB, free: 1.715 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003414/0.4651, allocations: 15.98 kB / 349.3 MB, free: 1.699 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.4652, allocations: 27.23 kB / 349.3 MB, free: 1.676 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.778e-05/0.4653, allocations: 7.5 kB / 349.3 MB, free: 1.672 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002892/0.4656, allocations: 198.3 kB / 349.5 MB, free: 1.516 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.22e-07/0.4656, allocations: 0 / 349.5 MB, free: 1.516 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009757/0.4666, allocations: 107.7 kB / 349.6 MB, free: 1.41 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 () * 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.0001825/0.4668, allocations: 103.2 kB / 349.7 MB, free: 1.301 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009999/0.4678, allocations: 0.5064 MB / 350.2 MB, free: 0.832 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.4678, allocations: 0 / 350.2 MB, free: 0.832 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005925/0.4684, allocations: 430.5 kB / 350.6 MB, free: 436 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005072/0.469, allocations: 43.02 kB / 350.7 MB, free: 408 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001259/0.4702, allocations: 432.7 kB / 351.1 MB, free: 15.98 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005671/0.4708, allocations: 0.8031 MB / 351.9 MB, free: 15.15 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.471, allocations: 23.42 kB / 351.9 MB, free: 15.12 MB / 298.7 MB Notification: Performance of SimCode: time 1.911e-06/0.471, allocations: 4 kB / 351.9 MB, free: 15.12 MB / 298.7 MB Notification: Performance of Templates: time 0.01427/0.4853, allocations: 7.766 MB / 359.7 MB, free: 7.395 MB / 298.7 MB