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.Rectifier.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.Rectifier,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.918/1.918, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005276/0.0005276, allocations: 19.98 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09739/0.09797, allocations: 44.51 MB / 308.5 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4222/0.5202, allocations: 74.74 MB / 383.3 MB, free: 15.02 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002553/0.5206, allocations: 72.66 kB / 383.4 MB, free: 15.01 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03405/0.5546, allocations: 8.756 MB / 392.1 MB, free: 13.96 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.784e-06/0.5547, allocations: 0 / 392.1 MB, free: 13.96 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.077e-05/0.5547, allocations: 11.72 kB / 392.1 MB, free: 13.96 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.00374/0.5585, allocations: 0.8235 MB / 392.9 MB, free: 13.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.883e-05/0.5586, allocations: 7.875 kB / 393 MB, free: 13.41 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003865/0.559, allocations: 111.1 kB / 393.1 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002271/0.5592, allocations: 73.97 kB / 393.1 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00106/0.5603, allocations: 371.8 kB / 393.5 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.707e-05/0.5604, allocations: 37.53 kB / 393.5 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001802/0.5606, allocations: 55.33 kB / 393.6 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002218/0.5628, allocations: 0.5649 MB / 394.2 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.441e-05/0.5629, allocations: 3.844 kB / 394.2 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.385e-05/0.563, allocations: 29.8 kB / 394.2 MB, free: 12.94 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.916e-05/0.563, allocations: 11.66 kB / 394.2 MB, free: 12.94 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002155/0.5652, allocations: 477.9 kB / 394.7 MB, free: 12.92 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005892/0.5712, allocations: 2.12 MB / 396.8 MB, free: 11.96 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.5725, allocations: 0.6348 MB / 397.4 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.787e-05/0.5726, allocations: 4.438 kB / 397.4 MB, free: 11.82 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.593e-05/0.5726, allocations: 38.88 kB / 397.5 MB, free: 11.78 MB / 314.7 MB Notification: Performance of pre-optimization done (n=60): time 4.208e-06/0.5726, allocations: 3.984 kB / 397.5 MB, free: 11.78 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.00615/0.5788, allocations: 1.988 MB / 399.5 MB, free: 11.04 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.568e-05/0.5789, allocations: 59.72 kB / 399.5 MB, free: 10.97 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004779/0.5794, allocations: 314.5 kB / 399.8 MB, free: 10.86 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.034e-05/0.5794, allocations: 33.52 kB / 399.8 MB, free: 10.83 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.5796, allocations: 294.1 kB / 400.1 MB, free: 10.63 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001759/0.5798, allocations: 201.8 kB / 400.3 MB, free: 10.5 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.628e-05/0.5798, allocations: 6.688 kB / 400.3 MB, free: 10.5 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.547e-05/0.5799, allocations: 334.3 kB / 400.7 MB, free: 10.19 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000551/0.5805, allocations: 176.9 kB / 400.8 MB, free: 10.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005324/0.581, allocations: 215.4 kB / 401 MB, free: 10.16 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005327/0.5816, allocations: 183.8 kB / 401.2 MB, free: 10.16 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/0.5816, allocations: 0 / 401.2 MB, free: 10.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001817/0.5834, allocations: 0.6539 MB / 401.9 MB, free: 10.04 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.688e-05/0.5835, allocations: 9.031 kB / 401.9 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.5835, allocations: 1.219 kB / 401.9 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001194/0.5847, allocations: 254.8 kB / 402.1 MB, free: 9.996 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005319/0.5853, allocations: 69.02 kB / 402.2 MB, free: 9.992 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007705/0.593, allocations: 6.83 MB / 409 MB, free: 4.539 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000585/0.5936, allocations: 19.25 kB / 409.1 MB, free: 4.539 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.831e-05/0.5937, allocations: 26.03 kB / 409.1 MB, free: 4.531 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 29 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003538/0.594, allocations: 173.4 kB / 409.3 MB, free: 4.414 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/0.5942, allocations: 46.81 kB / 409.3 MB, free: 4.391 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001397/0.5943, allocations: 65.14 kB / 409.4 MB, free: 4.379 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.216e-06/0.5943, allocations: 7.75 kB / 409.4 MB, free: 4.379 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.5943, allocations: 0 / 409.4 MB, free: 4.379 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.203e-05/0.5944, allocations: 10.67 kB / 409.4 MB, free: 4.371 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003093/0.5975, allocations: 1.361 MB / 410.7 MB, free: 20 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.162e-06/0.5975, allocations: 3.938 kB / 410.7 MB, free: 20 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004993/0.598, allocations: 57.58 kB / 410.8 MB, free: 20 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001007/0.599, allocations: 257.8 kB / 411.1 MB, free: 19.95 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.432e-05/0.5991, allocations: 9.812 kB / 411.1 MB, free: 19.95 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01493/0.614, allocations: 6.836 MB / 417.9 MB, free: 14.5 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.6141, allocations: 7.875 kB / 417.9 MB, free: 14.49 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004175/0.6183, allocations: 1.04 MB / 418.9 MB, free: 14.26 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006967/0.6191, allocations: 162.6 kB / 419.1 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001749/0.6193, allocations: 14.12 kB / 419.1 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007892/0.6201, allocations: 18 kB / 419.1 MB, free: 14.14 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003373/0.6204, allocations: 57.78 kB / 419.2 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.245e-05/0.6205, allocations: 11.81 kB / 419.2 MB, free: 14.13 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006352/0.6212, allocations: 259.9 kB / 419.5 MB, free: 14.04 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.82e-07/0.6212, allocations: 4 kB / 419.5 MB, free: 14.04 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003249/0.6245, allocations: 175.8 kB / 419.6 MB, free: 14.04 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (Inductor2.i,Inductor3.i,Capacitor1.v,Capacitor2.v) * Number of discrete variables: 6 (IdealDiode1.off,IdealDiode2.off,IdealDiode3.off,IdealDiode4.off,IdealDiode5.off,IdealDiode6.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 24 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.005784/0.6303, allocations: 1.605 MB / 421.2 MB, free: 13.27 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.004266/0.6347, allocations: 1.043 MB / 422.3 MB, free: 12.69 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.166e-06/0.6347, allocations: 4 kB / 422.3 MB, free: 12.68 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002892/0.6377, allocations: 0.8415 MB / 423.1 MB, free: 12.14 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007256/0.6384, allocations: 74.58 kB / 423.2 MB, free: 12.12 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007585/0.646, allocations: 3.619 MB / 426.8 MB, free: 10.3 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005726/0.6467, allocations: 0.8951 MB / 427.7 MB, free: 9.508 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003132/0.647, allocations: 180.3 kB / 427.9 MB, free: 9.484 MB / 330.7 MB Notification: Performance of SimCode: time 1.242e-06/0.647, allocations: 0 / 427.9 MB, free: 9.484 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.236/3.883, allocations: 15.82 MB / 443.7 MB, free: 1.496 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat