Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.769/1.769, allocations: 171.1 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003609/0.000361, allocations: 8 kB / 233.4 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08464/0.08504, allocations: 38.77 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.38/0.4651, allocations: 67.88 MB / 340 MB, free: 4.957 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002628/0.4655, allocations: 74.22 kB / 340.1 MB, free: 4.918 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02541/0.4909, allocations: 6.077 MB / 346.1 MB, free: 15.73 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4909, allocations: 384 / 346.1 MB, free: 15.73 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.91e-05/0.491, allocations: 12 kB / 346.2 MB, free: 15.71 MB / 282.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.001524/0.4925, allocations: 0.6729 MB / 346.8 MB, free: 15.02 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.938e-05/0.4926, allocations: 11.97 kB / 346.8 MB, free: 15 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001242/0.4927, allocations: 70.59 kB / 346.9 MB, free: 14.95 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000111/0.4928, allocations: 47.44 kB / 347 MB, free: 14.9 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005107/0.4933, allocations: 300.7 kB / 347.3 MB, free: 14.59 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.182e-05/0.4934, allocations: 23.16 kB / 347.3 MB, free: 14.58 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.46e-05/0.4935, allocations: 26.81 kB / 347.3 MB, free: 14.56 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009946/0.4945, allocations: 359.6 kB / 347.7 MB, free: 14.29 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.4945, allocations: 3.938 kB / 347.7 MB, free: 14.29 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.009e-05/0.4946, allocations: 14.44 kB / 347.7 MB, free: 14.29 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.463e-05/0.4946, allocations: 8 kB / 347.7 MB, free: 14.28 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000921/0.4955, allocations: 286.5 kB / 348 MB, free: 14.08 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003136/0.4987, allocations: 1.436 MB / 349.4 MB, free: 12.77 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007394/0.4995, allocations: 235.6 kB / 349.6 MB, free: 12.61 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.947e-05/0.4995, allocations: 7.984 kB / 349.6 MB, free: 12.6 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.524e-05/0.4996, allocations: 34.52 kB / 349.7 MB, free: 12.55 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 3.737e-06/0.4996, allocations: 4 kB / 349.7 MB, free: 12.55 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.002778/0.5024, allocations: 0.7047 MB / 350.4 MB, free: 11.87 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.698e-05/0.5025, allocations: 62.41 kB / 350.4 MB, free: 11.8 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004799/0.503, allocations: 274.7 kB / 350.7 MB, free: 11.57 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.545e-05/0.503, allocations: 28.95 kB / 350.7 MB, free: 11.54 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001782/0.5032, allocations: 213.8 kB / 350.9 MB, free: 11.37 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.578e-05/0.5033, allocations: 74.48 kB / 351 MB, free: 11.31 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.066e-05/0.5034, allocations: 2.938 kB / 351 MB, free: 11.31 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.5036, allocations: 346.2 kB / 351.4 MB, free: 10.97 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003447/0.5039, allocations: 79.47 kB / 351.4 MB, free: 10.92 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003834/0.5043, allocations: 134.3 kB / 351.6 MB, free: 10.8 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003654/0.5047, allocations: 85.11 kB / 351.6 MB, free: 10.75 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.5047, allocations: 0 / 351.6 MB, free: 10.75 MB / 282.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001353/0.5061, allocations: 377.9 kB / 352 MB, free: 10.45 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/0.5061, allocations: 9.094 kB / 352 MB, free: 10.44 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/0.5061, allocations: 64 / 352 MB, free: 10.44 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006314/0.5068, allocations: 116.4 kB / 352.1 MB, free: 10.34 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000322/0.5071, allocations: 35.91 kB / 352.2 MB, free: 10.31 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005432/0.5126, allocations: 4.492 MB / 356.7 MB, free: 5.719 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004449/0.5131, allocations: 27.55 kB / 356.7 MB, free: 5.695 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.316e-05/0.5131, allocations: 11.62 kB / 356.7 MB, free: 5.688 MB / 282.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.0002947/0.5134, allocations: 147.5 kB / 356.8 MB, free: 5.555 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.222e-05/0.5135, allocations: 31.62 kB / 356.9 MB, free: 5.523 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.254e-05/0.5136, allocations: 35.8 kB / 356.9 MB, free: 5.5 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.5136, allocations: 4 kB / 356.9 MB, free: 5.496 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.5137, allocations: 7.891 kB / 356.9 MB, free: 5.488 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.5137, allocations: 3.984 kB / 356.9 MB, free: 5.484 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006575/0.5143, allocations: 375 kB / 357.3 MB, free: 5.141 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.234e-06/0.5144, allocations: 3.984 kB / 357.3 MB, free: 5.137 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002383/0.5146, allocations: 28.3 kB / 357.3 MB, free: 5.109 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005639/0.5152, allocations: 119.7 kB / 357.4 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.5152, allocations: 3.688 kB / 357.4 MB, free: 5.012 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005354/0.5206, allocations: 4.474 MB / 361.9 MB, free: 448 kB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.5206, allocations: 0 / 361.9 MB, free: 448 kB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001112/0.5218, allocations: 420.4 kB / 362.3 MB, free: 80 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002624/0.522, allocations: 135.5 kB / 362.5 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.024e-05/0.5221, allocations: 3.438 kB / 362.5 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004084/0.5225, allocations: 23.73 kB / 362.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.5227, allocations: 31.33 kB / 362.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.718e-05/0.5227, allocations: 7.625 kB / 362.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003557/0.5231, allocations: 223.1 kB / 362.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5231, allocations: 0 / 362.7 MB, free: 15.71 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000908/0.524, allocations: 114.1 kB / 362.9 MB, free: 15.61 MB / 298.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.001414/0.5255, allocations: 0.9513 MB / 363.8 MB, free: 14.7 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001433/0.5269, allocations: 0.5896 MB / 364.4 MB, free: 14.15 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.5269, allocations: 0 / 364.4 MB, free: 14.15 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000869/0.5278, allocations: 482 kB / 364.9 MB, free: 13.69 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005754/0.5284, allocations: 48.34 kB / 364.9 MB, free: 13.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005182/0.5336, allocations: 2.528 MB / 367.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005487/0.5342, allocations: 0.8183 MB / 368.3 MB, free: 10.5 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002313/0.5345, allocations: 26.97 kB / 368.3 MB, free: 10.47 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000199/0.5347, allocations: 104 kB / 368.4 MB, free: 10.45 MB / 298.7 MB Notification: Performance of SimCode: time 1.452e-06/0.5347, allocations: 0 / 368.4 MB, free: 10.45 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03918/0.5739, allocations: 7.564 MB / 376 MB, free: 2.945 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003955/0.5744, allocations: 222.1 kB / 376.2 MB, free: 2.703 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.893/3.468, allocations: 4 kB / 376.2 MB, free: 2.699 MB / 298.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat