Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica_Electrical_Analog_Examples_CharacteristicIdealDiodes",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.955/1.955, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003658/0.0003658, allocations: 8 kB / 264 MB, free: 13.5 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1036, allocations: 44.51 MB / 308.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4283/0.5319, allocations: 73.15 MB / 381.7 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000288/0.5323, allocations: 70.53 kB / 381.8 MB, free: 14.48 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02627/0.5586, allocations: 6.228 MB / 388 MB, free: 13.65 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5586, allocations: 6.625 kB / 388 MB, free: 13.64 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.156e-05/0.5587, allocations: 11.97 kB / 388 MB, free: 13.64 MB / 314.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.001511/0.5602, allocations: 0.6617 MB / 388.7 MB, free: 13.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.5603, allocations: 8.781 kB / 388.7 MB, free: 13.16 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001351/0.5604, allocations: 68.5 kB / 388.7 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001213/0.5605, allocations: 55.73 kB / 388.8 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005281/0.5611, allocations: 296.7 kB / 389.1 MB, free: 12.85 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.864e-05/0.5611, allocations: 29.16 kB / 389.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.512e-05/0.5612, allocations: 29.09 kB / 389.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009259/0.5621, allocations: 359.1 kB / 389.5 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.5622, allocations: 0 / 389.5 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.256e-05/0.5622, allocations: 14.38 kB / 389.5 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.129e-05/0.5623, allocations: 7.781 kB / 389.5 MB, free: 12.77 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008535/0.5631, allocations: 278 kB / 389.8 MB, free: 12.75 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002925/0.5661, allocations: 1.44 MB / 391.2 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006376/0.5668, allocations: 234.8 kB / 391.4 MB, free: 11.92 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.965e-05/0.5668, allocations: 7.922 kB / 391.5 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.51e-05/0.5669, allocations: 38.38 kB / 391.5 MB, free: 11.87 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 3.386e-06/0.5669, allocations: 0 / 391.5 MB, free: 11.87 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.002354/0.5692, allocations: 0.7093 MB / 392.2 MB, free: 11.5 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.535e-05/0.5693, allocations: 54.64 kB / 392.3 MB, free: 11.44 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004152/0.5697, allocations: 273.1 kB / 392.5 MB, free: 11.34 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.626e-05/0.5698, allocations: 29.33 kB / 392.6 MB, free: 11.31 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.5699, allocations: 259 kB / 392.8 MB, free: 11.12 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.798e-05/0.57, allocations: 77.86 kB / 392.9 MB, free: 11.07 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.106e-05/0.5701, allocations: 7.125 kB / 392.9 MB, free: 11.07 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.865e-05/0.5701, allocations: 322.6 kB / 393.2 MB, free: 10.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003137/0.5705, allocations: 82.58 kB / 393.3 MB, free: 10.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003287/0.5708, allocations: 123.3 kB / 393.4 MB, free: 10.71 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000333/0.5711, allocations: 91.77 kB / 393.5 MB, free: 10.71 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.5712, allocations: 4 kB / 393.5 MB, free: 10.7 MB / 314.7 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001151/0.5723, allocations: 360 kB / 393.8 MB, free: 10.61 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.5724, allocations: 3.938 kB / 393.9 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.5724, allocations: 3.844 kB / 393.9 MB, free: 10.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006289/0.573, allocations: 118 kB / 394 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003031/0.5733, allocations: 34.19 kB / 394 MB, free: 10.58 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004062/0.5774, allocations: 4.476 MB / 398.5 MB, free: 6.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004601/0.5779, allocations: 23.91 kB / 398.5 MB, free: 6.512 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.858e-05/0.578, allocations: 11.44 kB / 398.5 MB, free: 6.512 MB / 314.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.000246/0.5782, allocations: 146.4 kB / 398.7 MB, free: 6.395 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.541e-05/0.5783, allocations: 31.12 kB / 398.7 MB, free: 6.379 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.912e-05/0.5784, allocations: 38.41 kB / 398.7 MB, free: 6.367 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.5784, allocations: 7.922 kB / 398.7 MB, free: 6.363 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.5784, allocations: 0 / 398.7 MB, free: 6.363 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.5785, allocations: 2.297 kB / 398.7 MB, free: 6.363 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005157/0.579, allocations: 376.6 kB / 399.1 MB, free: 6.168 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.579, allocations: 0 / 399.1 MB, free: 6.168 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002198/0.5792, allocations: 31.75 kB / 399.1 MB, free: 6.16 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005058/0.5797, allocations: 113.6 kB / 399.2 MB, free: 6.137 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/0.5798, allocations: 4 kB / 399.2 MB, free: 6.133 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004743/0.5845, allocations: 4.476 MB / 403.7 MB, free: 18.09 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.5846, allocations: 3.75 kB / 403.7 MB, free: 18.09 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.5856, allocations: 409.6 kB / 404.1 MB, free: 17.9 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002009/0.5858, allocations: 128 kB / 404.3 MB, free: 17.79 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.088e-05/0.5859, allocations: 15 kB / 404.3 MB, free: 17.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003937/0.5863, allocations: 26.59 kB / 404.3 MB, free: 17.78 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.5865, allocations: 27.41 kB / 404.3 MB, free: 17.78 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.617e-05/0.5865, allocations: 5.859 kB / 404.3 MB, free: 17.78 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003094/0.5868, allocations: 218.3 kB / 404.5 MB, free: 17.69 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5868, allocations: 3.781 kB / 404.5 MB, free: 17.69 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009052/0.5877, allocations: 117.4 kB / 404.7 MB, free: 17.68 MB / 330.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.001364/0.5891, allocations: 0.9501 MB / 405.6 MB, free: 16.97 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001266/0.5904, allocations: 0.5731 MB / 406.2 MB, free: 16.62 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.5905, allocations: 0 / 406.2 MB, free: 16.62 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007654/0.5912, allocations: 496.6 kB / 406.7 MB, free: 16.27 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005852/0.5918, allocations: 54.61 kB / 406.7 MB, free: 16.26 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004653/0.5965, allocations: 2.537 MB / 409.3 MB, free: 14.82 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004305/0.597, allocations: 0.8006 MB / 410.1 MB, free: 14.12 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002158/0.5972, allocations: 113.4 kB / 410.2 MB, free: 14.11 MB / 330.7 MB Notification: Performance of SimCode: time 1.954e-06/0.5972, allocations: 0 / 410.2 MB, free: 14.11 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.776/3.373, allocations: 9.516 MB / 419.7 MB, free: 11.1 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicIdealDiodes_res.mat does not exist to compare? outputFormat=mat