Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes") Notification: Performance of loadModel(Modelica): time 1.871/1.871, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003772/0.0003773, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07995/0.08036, allocations: 44.51 MB / 308.4 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004055/0.08446, allocations: 2.808 MB / 311.2 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001646/0.08615, allocations: 0.7765 MB / 311.9 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002081/0.08638, allocations: 4 kB / 311.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001127/0.08651, allocations: 51.59 kB / 312 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003801/0.08691, allocations: 163.5 kB / 312.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002971/0.08722, allocations: 83.84 kB / 312.2 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000531/0.08777, allocations: 347.1 kB / 312.6 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002532/0.08804, allocations: 118.6 kB / 312.7 MB, free: 12.66 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002703/0.08832, allocations: 159.4 kB / 312.8 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002754/0.08861, allocations: 179.2 kB / 313 MB, free: 12.33 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.904e-05/0.08869, allocations: 20 kB / 313 MB, free: 12.31 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.647e-05/0.08879, allocations: 20 kB / 313.1 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.323e-05/0.08888, allocations: 71.67 kB / 313.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001216/0.08902, allocations: 97.52 kB / 313.2 MB, free: 12.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004511/0.08948, allocations: 351.2 kB / 313.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.5e-06/0.0895, allocations: 0 / 313.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.817e-06/0.08951, allocations: 0 / 313.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.223e-05/0.08953, allocations: 4 kB / 313.6 MB, free: 11.77 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.001228/0.09077, allocations: 0.6622 MB / 314.2 MB, free: 11.06 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.09082, allocations: 8.031 kB / 314.2 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/0.09095, allocations: 47.44 kB / 314.3 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004881/0.09145, allocations: 306.1 kB / 314.6 MB, free: 10.67 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.372e-05/0.0915, allocations: 24.66 kB / 314.6 MB, free: 10.64 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.624e-05/0.09158, allocations: 35.94 kB / 314.6 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008538/0.09245, allocations: 354.8 kB / 315 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.498e-05/0.09248, allocations: 0 / 315 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.862e-05/0.09254, allocations: 16 kB / 315 MB, free: 10.23 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.09256, allocations: 8 kB / 315 MB, free: 10.22 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008111/0.09339, allocations: 282.4 kB / 315.3 MB, free: 9.941 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002661/0.09606, allocations: 1.423 MB / 316.7 MB, free: 8.418 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000599/0.0967, allocations: 222.4 kB / 316.9 MB, free: 8.191 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.861e-05/0.09675, allocations: 4 kB / 316.9 MB, free: 8.188 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.393e-05/0.09681, allocations: 50.44 kB / 317 MB, free: 8.129 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 2.936e-06/0.09682, allocations: 0 / 317 MB, free: 8.129 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.002004/0.09884, allocations: 0.7024 MB / 317.7 MB, free: 7.355 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.09891, allocations: 55.41 kB / 317.7 MB, free: 7.289 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004646/0.09938, allocations: 308.5 kB / 318 MB, free: 6.984 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.052e-05/0.09944, allocations: 29.7 kB / 318.1 MB, free: 6.949 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002092/0.09966, allocations: 254.6 kB / 318.3 MB, free: 6.695 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.696e-05/0.09976, allocations: 74.91 kB / 318.4 MB, free: 6.621 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.845e-05/0.09979, allocations: 4 kB / 318.4 MB, free: 6.617 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001697/0.09997, allocations: 322.8 kB / 318.7 MB, free: 6.293 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003015/0.1003, allocations: 87.95 kB / 318.8 MB, free: 6.207 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003182/0.1006, allocations: 128.2 kB / 318.9 MB, free: 6.066 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003187/0.101, allocations: 87.92 kB / 319 MB, free: 5.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.583e-06/0.101, allocations: 0 / 319 MB, free: 5.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001113/0.1021, allocations: 359.8 kB / 319.4 MB, free: 5.613 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.1021, allocations: 4 kB / 319.4 MB, free: 5.609 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.905e-06/0.1022, allocations: 4 kB / 319.4 MB, free: 5.605 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005626/0.1027, allocations: 122.5 kB / 319.5 MB, free: 5.477 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002317/0.103, allocations: 35.97 kB / 319.5 MB, free: 5.441 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005464/0.1085, allocations: 4.488 MB / 324 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003205/0.1088, allocations: 27.86 kB / 324 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.849e-05/0.1089, allocations: 8 kB / 324 MB, free: 0.5117 MB / 266.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.0002439/0.1091, allocations: 145.8 kB / 324.2 MB, free: 368 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.043e-05/0.1092, allocations: 31.91 kB / 324.2 MB, free: 336 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.153e-05/0.1093, allocations: 43.23 kB / 324.3 MB, free: 292 kB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.1093, allocations: 0 / 324.3 MB, free: 292 kB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.234e-06/0.1094, allocations: 7.891 kB / 324.3 MB, free: 284 kB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.072e-06/0.1094, allocations: 3.984 kB / 324.3 MB, free: 280 kB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000602/0.11, allocations: 373.3 kB / 324.6 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.549e-06/0.11, allocations: 0 / 324.6 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001682/0.1102, allocations: 23.98 kB / 324.7 MB, free: 15.83 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004885/0.1107, allocations: 118.4 kB / 324.8 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.508e-05/0.1107, allocations: 7.984 kB / 324.8 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005278/0.116, allocations: 4.465 MB / 329.2 MB, free: 10.84 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.593e-06/0.1161, allocations: 8.062 kB / 329.3 MB, free: 10.83 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000945/0.117, allocations: 415.3 kB / 329.7 MB, free: 10.4 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001982/0.1172, allocations: 128.6 kB / 329.8 MB, free: 10.26 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.236e-05/0.1173, allocations: 4 kB / 329.8 MB, free: 10.25 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002916/0.1176, allocations: 19.98 kB / 329.8 MB, free: 10.23 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001087/0.1177, allocations: 35.89 kB / 329.8 MB, free: 10.2 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.311e-05/0.1178, allocations: 4 kB / 329.9 MB, free: 10.2 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003159/0.1181, allocations: 223 kB / 330.1 MB, free: 9.977 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.66e-07/0.1181, allocations: 0 / 330.1 MB, free: 9.977 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009069/0.119, allocations: 115.8 kB / 330.2 MB, free: 9.863 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.0001606/0.1192, allocations: 99.25 kB / 330.3 MB, free: 9.754 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001228/0.1204, allocations: 0.5817 MB / 330.9 MB, free: 9.133 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.95e-06/0.1205, allocations: 0 / 330.9 MB, free: 9.133 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007788/0.1213, allocations: 487.4 kB / 331.3 MB, free: 8.621 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004654/0.1217, allocations: 57.61 kB / 331.4 MB, free: 8.566 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/0.1234, allocations: 0.7953 MB / 332.2 MB, free: 7.742 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005447/0.1239, allocations: 0.8067 MB / 333 MB, free: 6.91 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.404e-05/0.124, allocations: 19.44 kB / 333 MB, free: 6.891 MB / 282.7 MB Notification: Performance of SimCode: time 1.628e-06/0.1241, allocations: 0 / 333 MB, free: 6.891 MB / 282.7 MB Notification: Performance of Templates: time 0.01363/0.1377, allocations: 7.961 MB / 341 MB, free: 14.93 MB / 298.7 MB