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.998/1.998, allocations: 194.9 MB / 211.1 MB, free: 8.57 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004792/0.0004792, allocations: 8 kB / 264.1 MB, free: 3.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3207, allocations: 44.51 MB / 308.6 MB, free: 12.68 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1303/0.4511, allocations: 73.16 MB / 381.7 MB, free: 3.414 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002734/0.4514, allocations: 67.97 kB / 381.8 MB, free: 3.348 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0272/0.4787, allocations: 6.229 MB / 388 MB, free: 13.07 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.115e-06/0.4787, allocations: 0 / 388 MB, free: 13.07 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.802e-05/0.4788, allocations: 15.98 kB / 388 MB, free: 13.06 MB / 330.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.001637/0.4804, allocations: 0.6583 MB / 388.7 MB, free: 12.35 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.878e-05/0.4805, allocations: 8.031 kB / 388.7 MB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001391/0.4807, allocations: 74.91 kB / 388.8 MB, free: 12.26 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001207/0.4808, allocations: 51.39 kB / 388.8 MB, free: 12.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005734/0.4814, allocations: 298.2 kB / 389.1 MB, free: 11.88 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.959e-05/0.4814, allocations: 24.64 kB / 389.1 MB, free: 11.86 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.158e-05/0.4815, allocations: 35.94 kB / 389.2 MB, free: 11.82 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/0.4825, allocations: 354.8 kB / 389.5 MB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.714e-05/0.4826, allocations: 0 / 389.5 MB, free: 11.45 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.995e-05/0.4826, allocations: 19.98 kB / 389.5 MB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.364e-05/0.4827, allocations: 8 kB / 389.5 MB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009731/0.4837, allocations: 278.4 kB / 389.8 MB, free: 11.15 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003323/0.487, allocations: 1.426 MB / 391.2 MB, free: 9.625 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007273/0.4878, allocations: 250.1 kB / 391.5 MB, free: 9.371 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.249e-05/0.4878, allocations: 0 / 391.5 MB, free: 9.371 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.714e-05/0.4879, allocations: 34.56 kB / 391.5 MB, free: 9.328 MB / 330.7 MB Notification: Performance of pre-optimization done (n=24): time 2.224e-06/0.4879, allocations: 0 / 391.5 MB, free: 9.328 MB / 330.7 MB Notification: Performance of matching and sorting (n=24): time 0.002569/0.4905, allocations: 0.7101 MB / 392.2 MB, free: 8.547 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.4906, allocations: 55.41 kB / 392.3 MB, free: 8.48 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000455/0.491, allocations: 267.7 kB / 392.6 MB, free: 8.219 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.025e-05/0.4911, allocations: 29.7 kB / 392.6 MB, free: 8.184 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001823/0.4913, allocations: 208.2 kB / 392.8 MB, free: 7.977 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.362e-05/0.4914, allocations: 82.83 kB / 392.9 MB, free: 7.895 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.138e-05/0.4914, allocations: 4 kB / 392.9 MB, free: 7.891 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.4916, allocations: 334.8 kB / 393.2 MB, free: 7.555 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000344/0.4919, allocations: 91.95 kB / 393.3 MB, free: 7.465 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003703/0.4923, allocations: 124.2 kB / 393.4 MB, free: 7.328 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003612/0.4927, allocations: 91.92 kB / 393.5 MB, free: 7.238 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.4927, allocations: 0 / 393.5 MB, free: 7.238 MB / 330.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001338/0.4941, allocations: 379.4 kB / 393.9 MB, free: 6.852 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.399e-05/0.4941, allocations: 4 kB / 393.9 MB, free: 6.848 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.049e-05/0.4941, allocations: 4 kB / 393.9 MB, free: 6.844 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006561/0.4948, allocations: 122.5 kB / 394 MB, free: 6.715 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003128/0.4951, allocations: 27.98 kB / 394 MB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005286/0.5004, allocations: 4.477 MB / 398.5 MB, free: 1.801 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004452/0.5009, allocations: 35.7 kB / 398.5 MB, free: 1.766 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.734e-05/0.501, allocations: 8 kB / 398.5 MB, free: 1.758 MB / 330.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.0002805/0.5013, allocations: 149.8 kB / 398.7 MB, free: 1.602 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.247e-05/0.5014, allocations: 31.62 kB / 398.7 MB, free: 1.57 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.457e-05/0.5015, allocations: 39.17 kB / 398.8 MB, free: 1.527 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.5015, allocations: 8.016 kB / 398.8 MB, free: 1.52 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.5015, allocations: 0 / 398.8 MB, free: 1.52 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/0.5015, allocations: 4 kB / 398.8 MB, free: 1.516 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006227/0.5022, allocations: 373.2 kB / 399.1 MB, free: 1.102 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.5022, allocations: 0 / 399.1 MB, free: 1.102 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002351/0.5024, allocations: 27.92 kB / 399.2 MB, free: 1.074 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005605/0.503, allocations: 106.5 kB / 399.3 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/0.503, allocations: 15.98 kB / 399.3 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00503/0.5081, allocations: 4.466 MB / 403.7 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.5081, allocations: 3.938 kB / 403.7 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.5092, allocations: 418.3 kB / 404.2 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002022/0.5095, allocations: 128.6 kB / 404.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.036e-05/0.5095, allocations: 4 kB / 404.3 MB, free: 11.5 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003966/0.5099, allocations: 23.98 kB / 404.3 MB, free: 11.47 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/0.5101, allocations: 35.84 kB / 404.3 MB, free: 11.44 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.683e-05/0.5101, allocations: 4 kB / 404.3 MB, free: 11.43 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003412/0.5105, allocations: 219.1 kB / 404.6 MB, free: 11.22 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5105, allocations: 0 / 404.6 MB, free: 11.22 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009396/0.5114, allocations: 119.7 kB / 404.7 MB, free: 11.1 MB / 346.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.001468/0.5129, allocations: 0.9451 MB / 405.6 MB, free: 10.12 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001467/0.5144, allocations: 0.5778 MB / 406.2 MB, free: 9.504 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.5145, allocations: 0 / 406.2 MB, free: 9.504 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008892/0.5154, allocations: 492 kB / 406.7 MB, free: 8.984 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005739/0.516, allocations: 57.02 kB / 406.7 MB, free: 8.93 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005321/0.5213, allocations: 2.499 MB / 409.2 MB, free: 6.348 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005129/0.5219, allocations: 0.8029 MB / 410 MB, free: 5.52 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002509/0.5222, allocations: 31.14 kB / 410.1 MB, free: 5.488 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002279/0.5224, allocations: 107.3 kB / 410.2 MB, free: 5.383 MB / 346.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5224, allocations: 0 / 410.2 MB, free: 5.383 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2894/0.8118, allocations: 7.593 MB / 417.8 MB, free: 95.29 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002449/0.8121, allocations: 224.3 kB / 418 MB, free: 95.06 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.942/3.754, allocations: 1.859 kB / 418 MB, free: 95.06 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat