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.587/1.587, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003504/0.0003506, allocations: 8 kB / 233.1 MB, free: 3.082 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06786/0.06824, allocations: 38.79 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.004055/0.07234, allocations: 2.797 MB / 274.7 MB, free: 9.391 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001393/0.07376, allocations: 0.7681 MB / 275.5 MB, free: 8.621 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001907/0.07397, allocations: 4 kB / 275.5 MB, free: 8.617 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000108/0.07409, allocations: 51.59 kB / 275.6 MB, free: 8.566 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004328/0.07453, allocations: 167.5 kB / 275.7 MB, free: 8.402 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002656/0.07482, allocations: 75.91 kB / 275.8 MB, free: 8.328 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005101/0.07534, allocations: 347.2 kB / 276.1 MB, free: 7.988 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002517/0.07561, allocations: 118.6 kB / 276.2 MB, free: 7.867 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002606/0.07589, allocations: 163.3 kB / 276.4 MB, free: 7.707 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000273/0.07618, allocations: 179.2 kB / 276.6 MB, free: 7.531 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.746e-05/0.07625, allocations: 20 kB / 276.6 MB, free: 7.512 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.124e-05/0.07634, allocations: 20 kB / 276.6 MB, free: 7.492 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.045e-05/0.07643, allocations: 75.67 kB / 276.7 MB, free: 7.418 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001155/0.07656, allocations: 101.5 kB / 276.8 MB, free: 7.312 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004509/0.07703, allocations: 359.2 kB / 277.1 MB, free: 6.961 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.507e-06/0.07704, allocations: 0 / 277.1 MB, free: 6.961 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.879e-06/0.07705, allocations: 0 / 277.1 MB, free: 6.961 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.732e-06/0.07707, allocations: 0 / 277.1 MB, free: 6.961 MB / 234.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.07829, allocations: 0.666 MB / 277.8 MB, free: 6.246 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.07834, allocations: 16.02 kB / 277.8 MB, free: 6.23 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001199/0.07847, allocations: 47.44 kB / 277.9 MB, free: 6.184 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004662/0.07895, allocations: 294.2 kB / 278.2 MB, free: 5.852 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.148e-05/0.079, allocations: 28.61 kB / 278.2 MB, free: 5.824 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.445e-05/0.0791, allocations: 28 kB / 278.2 MB, free: 5.797 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008282/0.07994, allocations: 366.7 kB / 278.6 MB, free: 5.418 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.07997, allocations: 0 / 278.6 MB, free: 5.418 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.638e-05/0.08003, allocations: 12 kB / 278.6 MB, free: 5.406 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.08005, allocations: 8 kB / 278.6 MB, free: 5.398 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007832/0.08085, allocations: 278.4 kB / 278.9 MB, free: 5.129 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002602/0.08347, allocations: 1.43 MB / 280.3 MB, free: 3.598 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005695/0.08406, allocations: 230.5 kB / 280.5 MB, free: 3.363 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.659e-05/0.08411, allocations: 4 kB / 280.5 MB, free: 3.359 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.468e-05/0.08415, allocations: 34.56 kB / 280.6 MB, free: 3.316 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 2.527e-06/0.08417, allocations: 4 kB / 280.6 MB, free: 3.312 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.00196/0.08613, allocations: 0.7101 MB / 281.3 MB, free: 2.531 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.939e-05/0.0862, allocations: 59.36 kB / 281.3 MB, free: 2.461 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004518/0.08667, allocations: 304.6 kB / 281.6 MB, free: 2.16 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.804e-05/0.08672, allocations: 29.7 kB / 281.7 MB, free: 2.125 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001933/0.08693, allocations: 262.5 kB / 281.9 MB, free: 1.867 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.048e-05/0.08703, allocations: 74.89 kB / 282 MB, free: 1.793 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.847e-05/0.08706, allocations: 4 kB / 282 MB, free: 1.789 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.08724, allocations: 326.8 kB / 282.3 MB, free: 1.461 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002851/0.08754, allocations: 87.95 kB / 282.4 MB, free: 1.375 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003341/0.08788, allocations: 136.2 kB / 282.5 MB, free: 1.227 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003097/0.08821, allocations: 87.86 kB / 282.6 MB, free: 1.141 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.389e-06/0.08823, allocations: 3.938 kB / 282.6 MB, free: 1.137 MB / 234.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001069/0.08931, allocations: 359.7 kB / 283 MB, free: 0.7695 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.08934, allocations: 4 kB / 283 MB, free: 0.7656 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.802e-06/0.08937, allocations: 4.062 kB / 283 MB, free: 0.7617 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005286/0.0899, allocations: 114.5 kB / 283.1 MB, free: 0.6406 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/0.09014, allocations: 35.91 kB / 283.1 MB, free: 0.6055 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005277/0.09544, allocations: 4.488 MB / 287.6 MB, free: 11.71 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002803/0.09574, allocations: 27.77 kB / 287.6 MB, free: 11.68 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.765e-05/0.09579, allocations: 8 kB / 287.6 MB, free: 11.68 MB / 250.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.0002653/0.09607, allocations: 149.9 kB / 287.8 MB, free: 11.52 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.532e-05/0.09618, allocations: 35.53 kB / 287.8 MB, free: 11.48 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.904e-05/0.09627, allocations: 43.39 kB / 287.9 MB, free: 11.44 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.304e-06/0.09629, allocations: 4 kB / 287.9 MB, free: 11.44 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.205e-06/0.0963, allocations: 0 / 287.9 MB, free: 11.44 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.717e-06/0.09632, allocations: 7.922 kB / 287.9 MB, free: 11.43 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005803/0.09691, allocations: 377.3 kB / 288.2 MB, free: 11.01 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.222e-06/0.09692, allocations: 0 / 288.2 MB, free: 11.01 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001627/0.0971, allocations: 27.97 kB / 288.3 MB, free: 10.98 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004658/0.09758, allocations: 110.5 kB / 288.4 MB, free: 10.87 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.09762, allocations: 4.125 kB / 288.4 MB, free: 10.86 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005128/0.1028, allocations: 4.477 MB / 292.9 MB, free: 5.984 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.078e-06/0.1028, allocations: 0 / 292.9 MB, free: 5.984 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009059/0.1037, allocations: 425 kB / 293.3 MB, free: 5.547 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000192/0.1039, allocations: 128.6 kB / 293.4 MB, free: 5.402 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.168e-05/0.104, allocations: 7.984 kB / 293.4 MB, free: 5.395 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002897/0.1043, allocations: 23.98 kB / 293.4 MB, free: 5.371 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.899e-05/0.1044, allocations: 27.83 kB / 293.5 MB, free: 5.344 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/0.1044, allocations: 8 kB / 293.5 MB, free: 5.336 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003176/0.1048, allocations: 219.1 kB / 293.7 MB, free: 5.121 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.23e-07/0.1048, allocations: 0 / 293.7 MB, free: 5.121 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000886/0.1057, allocations: 111.8 kB / 293.8 MB, free: 5.012 MB / 250.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.0001522/0.1058, allocations: 111.2 kB / 293.9 MB, free: 4.895 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001183/0.107, allocations: 0.5818 MB / 294.5 MB, free: 4.273 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.1071, allocations: 0 / 294.5 MB, free: 4.273 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007446/0.1078, allocations: 484 kB / 295 MB, free: 3.762 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004339/0.1083, allocations: 53.92 kB / 295 MB, free: 3.711 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001538/0.1098, allocations: 0.8088 MB / 295.8 MB, free: 2.871 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005237/0.1104, allocations: 0.8067 MB / 296.6 MB, free: 2.039 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.969e-05/0.1105, allocations: 23.44 kB / 296.6 MB, free: 2.016 MB / 250.7 MB Notification: Performance of SimCode: time 1.512e-06/0.1105, allocations: 0 / 296.6 MB, free: 2.016 MB / 250.7 MB Notification: Performance of Templates: time 0.184/0.2945, allocations: 7.965 MB / 304.6 MB, free: 28.02 MB / 250.7 MB