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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.993/1.993, allocations: 194.9 MB / 211.1 MB, free: 8.559 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005159/0.000516, allocations: 8 kB / 264 MB, free: 3.488 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2926/0.2931, allocations: 44.51 MB / 308.6 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes): time 0.005828/0.299, allocations: 2.817 MB / 311.4 MB, free: 9.93 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00247/0.3016, allocations: 0.7804 MB / 312.2 MB, free: 9.141 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002967/0.3019, allocations: 7.938 kB / 312.2 MB, free: 9.133 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001661/0.3021, allocations: 47.66 kB / 312.2 MB, free: 9.086 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006542/0.3028, allocations: 163.5 kB / 312.4 MB, free: 8.926 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004466/0.3032, allocations: 83.83 kB / 312.5 MB, free: 8.844 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008606/0.3041, allocations: 343.1 kB / 312.8 MB, free: 8.508 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003956/0.3045, allocations: 102.7 kB / 312.9 MB, free: 8.398 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003915/0.3049, allocations: 159.4 kB / 313 MB, free: 8.242 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004805/0.3054, allocations: 187.1 kB / 313.2 MB, free: 8.059 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.788e-05/0.3055, allocations: 20 kB / 313.2 MB, free: 8.039 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001345/0.3057, allocations: 20 kB / 313.3 MB, free: 8.02 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001216/0.3058, allocations: 67.75 kB / 313.3 MB, free: 7.953 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000173/0.306, allocations: 105.5 kB / 313.4 MB, free: 7.844 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006834/0.3067, allocations: 347.9 kB / 313.8 MB, free: 7.504 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.3067, allocations: 0 / 313.8 MB, free: 7.504 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3068, allocations: 0 / 313.8 MB, free: 7.504 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.645e-06/0.3068, allocations: 0 / 313.8 MB, free: 7.504 MB / 250.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.001976/0.3088, allocations: 0.6583 MB / 314.4 MB, free: 6.797 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.3088, allocations: 12.03 kB / 314.4 MB, free: 6.785 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001472/0.309, allocations: 66.53 kB / 314.5 MB, free: 6.711 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001582/0.3092, allocations: 51.44 kB / 314.6 MB, free: 6.66 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006508/0.3098, allocations: 302.2 kB / 314.9 MB, free: 6.324 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.208e-05/0.3099, allocations: 24.66 kB / 314.9 MB, free: 6.301 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.965e-05/0.31, allocations: 32 kB / 314.9 MB, free: 6.27 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.3113, allocations: 350.7 kB / 315.3 MB, free: 5.91 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.269e-05/0.3114, allocations: 11.98 kB / 315.3 MB, free: 5.898 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.883e-05/0.3115, allocations: 12 kB / 315.3 MB, free: 5.887 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.858e-05/0.3115, allocations: 8 kB / 315.3 MB, free: 5.879 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00141/0.3129, allocations: 274.4 kB / 315.6 MB, free: 5.605 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004083/0.317, allocations: 1.434 MB / 317 MB, free: 4.07 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009792/0.3181, allocations: 225.3 kB / 317.2 MB, free: 3.844 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.613e-05/0.3181, allocations: 4 kB / 317.2 MB, free: 3.84 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.967e-05/0.3182, allocations: 42.52 kB / 317.3 MB, free: 3.789 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 3.887e-06/0.3182, allocations: 0 / 317.3 MB, free: 3.789 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.003559/0.3218, allocations: 0.7101 MB / 318 MB, free: 3.008 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.541e-05/0.3219, allocations: 51.41 kB / 318 MB, free: 2.945 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006712/0.3225, allocations: 308.5 kB / 318.3 MB, free: 2.641 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.867e-05/0.3226, allocations: 33.64 kB / 318.3 MB, free: 2.602 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002524/0.3229, allocations: 216.2 kB / 318.6 MB, free: 2.383 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.323, allocations: 70.92 kB / 318.6 MB, free: 2.312 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.992e-05/0.3231, allocations: 4 kB / 318.6 MB, free: 2.309 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0002063/0.3233, allocations: 338.8 kB / 319 MB, free: 1.969 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004795/0.3238, allocations: 83.97 kB / 319 MB, free: 1.887 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005369/0.3243, allocations: 132.2 kB / 319.2 MB, free: 1.742 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005186/0.3249, allocations: 87.92 kB / 319.3 MB, free: 1.656 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.147e-06/0.3249, allocations: 0 / 319.3 MB, free: 1.656 MB / 250.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001771/0.3267, allocations: 383.6 kB / 319.6 MB, free: 1.266 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.819e-05/0.3267, allocations: 8 kB / 319.6 MB, free: 1.258 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3267, allocations: 0 / 319.6 MB, free: 1.258 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008048/0.3276, allocations: 110.5 kB / 319.7 MB, free: 1.141 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004049/0.328, allocations: 43.88 kB / 319.8 MB, free: 1.098 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007033/0.335, allocations: 4.477 MB / 324.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005425/0.3356, allocations: 31.77 kB / 324.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.973e-05/0.3357, allocations: 12.06 kB / 324.3 MB, free: 12.17 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.0003511/0.3361, allocations: 145.8 kB / 324.5 MB, free: 12.02 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001427/0.3362, allocations: 31.62 kB / 324.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001308/0.3364, allocations: 39.17 kB / 324.5 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.3364, allocations: 0 / 324.5 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.26e-05/0.3364, allocations: 3.953 kB / 324.5 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.3364, allocations: 4 kB / 324.5 MB, free: 11.94 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009066/0.3374, allocations: 373.2 kB / 324.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.3374, allocations: 4 kB / 324.9 MB, free: 11.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002974/0.3377, allocations: 23.98 kB / 324.9 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007498/0.3385, allocations: 110.6 kB / 325 MB, free: 11.38 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.755e-05/0.3385, allocations: 15.94 kB / 325 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006811/0.3453, allocations: 4.465 MB / 329.5 MB, free: 6.504 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.3454, allocations: 3.953 kB / 329.5 MB, free: 6.5 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001432/0.3469, allocations: 414.2 kB / 329.9 MB, free: 6.07 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002642/0.3471, allocations: 132.6 kB / 330 MB, free: 5.922 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.897e-05/0.3472, allocations: 7.984 kB / 330.1 MB, free: 5.914 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005743/0.3478, allocations: 23.98 kB / 330.1 MB, free: 5.891 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.348, allocations: 31.95 kB / 330.1 MB, free: 5.859 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.808e-05/0.3481, allocations: 7.953 kB / 330.1 MB, free: 5.852 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004742/0.3486, allocations: 215.1 kB / 330.3 MB, free: 5.641 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.51e-07/0.3486, allocations: 0 / 330.3 MB, free: 5.641 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001612/0.3502, allocations: 115.8 kB / 330.4 MB, free: 5.527 MB / 266.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.001882/0.3521, allocations: 0.9486 MB / 331.4 MB, free: 4.539 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001919/0.354, allocations: 0.5784 MB / 332 MB, free: 3.922 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/0.3541, allocations: 0 / 332 MB, free: 3.922 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001173/0.3552, allocations: 488 kB / 332.4 MB, free: 3.406 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007392/0.356, allocations: 61.11 kB / 332.5 MB, free: 3.348 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006482/0.3625, allocations: 1.921 MB / 334.4 MB, free: 1.348 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006147/0.3632, allocations: 0.8029 MB / 335.2 MB, free: 0.5195 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002713/0.3635, allocations: 22.97 kB / 335.3 MB, free: 0.4961 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000277/0.3638, allocations: 111.4 kB / 335.4 MB, free: 396 kB / 266.7 MB Notification: Performance of SimCode: time 1.163e-05/0.3638, allocations: 4 kB / 335.4 MB, free: 392 kB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03932/0.4031, allocations: 7.564 MB / 342.9 MB, free: 8.859 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003243/0.4035, allocations: 226.5 kB / 343.1 MB, free: 8.613 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.63/3.034, allocations: 3.938 kB / 343.2 MB, free: 8.609 MB / 282.7 MB