Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadModel(Modelica): time 2.368/2.368, allocations: 194.9 MB / 211.7 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003592/0.0003595, allocations: 12 kB / 264.5 MB, free: 12.95 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1041/0.1045, allocations: 44.5 MB / 309 MB, free: 384 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4661/0.5706, allocations: 73.14 MB / 382.2 MB, free: 15.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000259/0.5709, allocations: 73.41 kB / 382.3 MB, free: 15.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02636/0.5973, allocations: 6.229 MB / 388.5 MB, free: 14.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.454e-06/0.5973, allocations: 4 kB / 388.5 MB, free: 14.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.71e-05/0.5974, allocations: 11.22 kB / 388.5 MB, free: 14.57 MB / 314.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.001485/0.5989, allocations: 0.6586 MB / 389.2 MB, free: 14.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.5989, allocations: 11.75 kB / 389.2 MB, free: 14.09 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001419/0.5991, allocations: 50.64 kB / 389.2 MB, free: 14.06 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004523/0.5996, allocations: 297.1 kB / 389.5 MB, free: 13.82 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.823e-05/0.5996, allocations: 30.84 kB / 389.5 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.391e-05/0.5997, allocations: 35.75 kB / 389.6 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009092/0.6006, allocations: 352.1 kB / 389.9 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.959e-05/0.6006, allocations: 3.984 kB / 389.9 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.263e-05/0.6007, allocations: 16.7 kB / 389.9 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.136e-05/0.6007, allocations: 7.719 kB / 389.9 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008603/0.6016, allocations: 281.2 kB / 390.2 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002868/0.6045, allocations: 1.427 MB / 391.6 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006421/0.6051, allocations: 239.4 kB / 391.9 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.367e-05/0.6052, allocations: 0 / 391.9 MB, free: 12.88 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.6052, allocations: 41.75 kB / 391.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.326e-06/0.6053, allocations: 0 / 391.9 MB, free: 12.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.002385/0.6077, allocations: 0.7111 MB / 392.6 MB, free: 12.47 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.395e-05/0.6077, allocations: 55.25 kB / 392.7 MB, free: 12.41 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004281/0.6082, allocations: 301.9 kB / 393 MB, free: 12.3 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.306e-05/0.6082, allocations: 28.7 kB / 393 MB, free: 12.27 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/0.6083, allocations: 210.9 kB / 393.2 MB, free: 12.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.37e-05/0.6084, allocations: 81.42 kB / 393.3 MB, free: 12.1 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.02e-05/0.6085, allocations: 7.375 kB / 393.3 MB, free: 12.09 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.763e-05/0.6086, allocations: 340.8 kB / 393.6 MB, free: 11.78 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003168/0.6089, allocations: 83.48 kB / 393.7 MB, free: 11.78 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003417/0.6092, allocations: 126 kB / 393.8 MB, free: 11.74 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003336/0.6096, allocations: 85.91 kB / 393.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.6096, allocations: 0 / 393.9 MB, free: 11.73 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001223/0.6108, allocations: 380.4 kB / 394.3 MB, free: 11.64 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.141e-05/0.6109, allocations: 11.59 kB / 394.3 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.886e-06/0.6109, allocations: 0 / 394.3 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006176/0.6115, allocations: 117.7 kB / 394.4 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003102/0.6119, allocations: 32.81 kB / 394.5 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00423/0.6161, allocations: 4.484 MB / 398.9 MB, free: 7.535 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004681/0.6166, allocations: 30.02 kB / 399 MB, free: 7.523 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.925e-05/0.6167, allocations: 7.312 kB / 399 MB, free: 7.523 MB / 314.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.0002602/0.6169, allocations: 143.9 kB / 399.1 MB, free: 7.406 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.36e-05/0.617, allocations: 35 kB / 399.2 MB, free: 7.391 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.989e-05/0.6171, allocations: 41.89 kB / 399.2 MB, free: 7.387 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.6171, allocations: 3.953 kB / 399.2 MB, free: 7.383 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.6172, allocations: 3.984 kB / 399.2 MB, free: 7.379 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.6172, allocations: 3.781 kB / 399.2 MB, free: 7.379 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005607/0.6177, allocations: 371.5 kB / 399.6 MB, free: 7.184 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.6178, allocations: 0 / 399.6 MB, free: 7.184 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002368/0.618, allocations: 33.17 kB / 399.6 MB, free: 7.176 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005455/0.6186, allocations: 111.5 kB / 399.7 MB, free: 7.152 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.628e-05/0.6186, allocations: 6.453 kB / 399.7 MB, free: 7.152 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004598/0.6232, allocations: 4.476 MB / 404.2 MB, free: 19.1 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/0.6233, allocations: 2.906 kB / 404.2 MB, free: 19.1 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001014/0.6243, allocations: 410.3 kB / 404.6 MB, free: 18.92 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00022/0.6245, allocations: 126.7 kB / 404.7 MB, free: 18.81 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.355e-05/0.6246, allocations: 7 kB / 404.7 MB, free: 18.81 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003892/0.625, allocations: 28.81 kB / 404.8 MB, free: 18.8 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000125/0.6252, allocations: 36.27 kB / 404.8 MB, free: 18.79 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.582e-05/0.6252, allocations: 7.25 kB / 404.8 MB, free: 18.79 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000336/0.6255, allocations: 219.3 kB / 405 MB, free: 18.71 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6256, allocations: 0 / 405 MB, free: 18.71 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009689/0.6265, allocations: 113.1 kB / 405.1 MB, free: 18.69 MB / 330.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.0001742/0.6267, allocations: 112.8 kB / 405.2 MB, free: 18.6 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001309/0.628, allocations: 0.5789 MB / 405.8 MB, free: 18.25 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.6281, allocations: 0 / 405.8 MB, free: 18.25 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008646/0.629, allocations: 490 kB / 406.3 MB, free: 17.9 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005653/0.6296, allocations: 44.97 kB / 406.3 MB, free: 17.9 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001719/0.6313, allocations: 0.7504 MB / 407.1 MB, free: 17.46 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000481/0.6318, allocations: 0.8005 MB / 407.9 MB, free: 16.77 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002405/0.6321, allocations: 28.98 kB / 407.9 MB, free: 16.76 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.963e-05/0.6322, allocations: 23.03 kB / 407.9 MB, free: 16.75 MB / 330.7 MB Notification: Performance of SimCode: time 1.213e-06/0.6322, allocations: 0 / 407.9 MB, free: 16.75 MB / 330.7 MB Notification: Performance of Templates: time 0.01469/0.6469, allocations: 4.731 MB / 412.7 MB, free: 16.09 MB / 330.7 MB