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.58/1.58, allocations: 171.2 MB / 184.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.424e-05/2.443e-05, allocations: 4 kB / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2055/0.2055, allocations: 38.77 MB / 267.6 MB, free: 9.309 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1021/0.3077, allocations: 67.79 MB / 335.4 MB, free: 5.418 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002312/0.308, allocations: 71.97 kB / 335.4 MB, free: 5.348 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02452/0.3325, allocations: 6.078 MB / 341.5 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.471e-06/0.3326, allocations: 4 kB / 341.5 MB, free: 15.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.703e-05/0.3326, allocations: 8 kB / 341.5 MB, free: 15.22 MB / 298.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.001099/0.3337, allocations: 0.6113 MB / 342.1 MB, free: 14.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.3338, allocations: 16.03 kB / 342.2 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001159/0.3339, allocations: 47.44 kB / 342.2 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000494/0.3344, allocations: 302.5 kB / 342.5 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.489e-05/0.3345, allocations: 24.78 kB / 342.5 MB, free: 14.14 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.273e-05/0.3345, allocations: 28 kB / 342.6 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007584/0.3353, allocations: 340.6 kB / 342.9 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.472e-05/0.3353, allocations: 0 / 342.9 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.789e-05/0.3354, allocations: 12 kB / 342.9 MB, free: 13.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.642e-05/0.3354, allocations: 12 kB / 342.9 MB, free: 13.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006033/0.336, allocations: 235 kB / 343.1 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002754/0.3388, allocations: 1.435 MB / 344.6 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004966/0.3393, allocations: 217.3 kB / 344.8 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002231/0.3396, allocations: 96.8 kB / 344.9 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.338e-05/0.3396, allocations: 3.938 kB / 344.9 MB, free: 11.65 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/0.3397, allocations: 34.56 kB / 344.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 5.722e-06/0.3397, allocations: 0 / 344.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0007146/0.3404, allocations: 272 kB / 345.2 MB, free: 11.33 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.716e-05/0.3405, allocations: 59.41 kB / 345.2 MB, free: 11.26 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004169/0.3409, allocations: 270.8 kB / 345.5 MB, free: 10.99 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.699e-05/0.341, allocations: 29.7 kB / 345.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001932/0.3412, allocations: 262.5 kB / 345.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.656e-05/0.3413, allocations: 74.91 kB / 345.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.832e-05/0.3413, allocations: 4 kB / 345.9 MB, free: 10.61 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.3415, allocations: 322.8 kB / 346.2 MB, free: 10.29 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001797/0.3417, allocations: 60 kB / 346.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002268/0.3419, allocations: 120.2 kB / 346.4 MB, free: 10.1 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001992/0.3421, allocations: 63.97 kB / 346.4 MB, free: 10.04 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.325e-06/0.3422, allocations: 4 kB / 346.4 MB, free: 10.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009074/0.3431, allocations: 311.8 kB / 346.7 MB, free: 9.711 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.3431, allocations: 5.094 kB / 346.7 MB, free: 9.707 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.3431, allocations: 7.984 kB / 346.7 MB, free: 9.699 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005651/0.3437, allocations: 114.5 kB / 346.9 MB, free: 9.578 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002393/0.344, allocations: 31.98 kB / 346.9 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005094/0.3491, allocations: 4.453 MB / 351.3 MB, free: 4.695 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003404/0.3495, allocations: 23.75 kB / 351.4 MB, free: 4.672 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.37e-05/0.3495, allocations: 16.19 kB / 351.4 MB, free: 4.656 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 () * 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.000139/0.3497, allocations: 113 kB / 351.5 MB, free: 4.539 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.351e-05/0.3498, allocations: 35.61 kB / 351.5 MB, free: 4.504 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001006/0.3499, allocations: 38.95 kB / 351.6 MB, free: 4.457 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.567e-06/0.3499, allocations: 4 kB / 351.6 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.028e-06/0.3499, allocations: 3.938 kB / 351.6 MB, free: 4.449 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.508e-06/0.3499, allocations: 3.953 kB / 351.6 MB, free: 4.445 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006098/0.3506, allocations: 377.2 kB / 351.9 MB, free: 4.027 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.601e-06/0.3506, allocations: 4 kB / 351.9 MB, free: 4.023 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001704/0.3508, allocations: 23.98 kB / 352 MB, free: 4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004964/0.3513, allocations: 114.6 kB / 352.1 MB, free: 3.879 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.613e-05/0.3513, allocations: 8 kB / 352.1 MB, free: 3.871 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1829/0.5342, allocations: 4.423 MB / 356.5 MB, free: 77.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.428e-06/0.5343, allocations: 1.094 kB / 356.5 MB, free: 77.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007891/0.5351, allocations: 374.9 kB / 356.9 MB, free: 77.78 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001806/0.5353, allocations: 131 kB / 357 MB, free: 77.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.587e-05/0.5353, allocations: 4.438 kB / 357 MB, free: 77.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003187/0.5357, allocations: 28.59 kB / 357 MB, free: 77.68 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.5358, allocations: 23.36 kB / 357.1 MB, free: 77.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.029e-05/0.5358, allocations: 10.38 kB / 357.1 MB, free: 77.68 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003356/0.5362, allocations: 219.1 kB / 357.3 MB, free: 77.6 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.839e-06/0.5362, allocations: 0.5 kB / 357.3 MB, free: 77.6 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009424/0.5371, allocations: 119.7 kB / 357.4 MB, free: 77.6 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 () * 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.0001412/0.5373, allocations: 106.2 kB / 357.5 MB, free: 77.51 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009104/0.5382, allocations: 0.5369 MB / 358 MB, free: 77.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.901e-06/0.5382, allocations: 0.5312 kB / 358 MB, free: 77.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005566/0.5388, allocations: 464.8 kB / 358.5 MB, free: 76.85 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004273/0.5393, allocations: 60.72 kB / 358.6 MB, free: 76.85 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/0.5403, allocations: 441.1 kB / 359 MB, free: 76.64 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002952/0.5406, allocations: 0.8079 MB / 359.8 MB, free: 75.95 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.827e-05/0.5407, allocations: 24.05 kB / 359.8 MB, free: 75.94 MB / 298.7 MB Notification: Performance of SimCode: time 1.559e-06/0.5407, allocations: 5.25 kB / 359.8 MB, free: 75.94 MB / 298.7 MB Notification: Performance of Templates: time 0.01025/0.551, allocations: 7.968 MB / 367.8 MB, free: 73.23 MB / 298.7 MB