Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.Rectifier.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.Rectifier,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Analog_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.675/1.675, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003625/0.0003626, allocations: 8 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09591/0.09632, allocations: 38.76 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3452/0.4416, allocations: 69.46 MB / 341.6 MB, free: 4.09 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/0.4419, allocations: 69.66 kB / 341.6 MB, free: 4.055 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03855/0.4805, allocations: 8.347 MB / 350 MB, free: 12.97 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.866e-06/0.4805, allocations: 0 / 350 MB, free: 12.97 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.973e-05/0.4806, allocations: 12 kB / 350 MB, free: 12.96 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.002362/0.483, allocations: 0.8329 MB / 350.8 MB, free: 12.12 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/0.483, allocations: 8.031 kB / 350.8 MB, free: 12.11 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003077/0.4834, allocations: 108.4 kB / 350.9 MB, free: 12.02 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001892/0.4836, allocations: 71.16 kB / 351 MB, free: 11.95 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000768/0.4843, allocations: 377 kB / 351.4 MB, free: 11.59 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.595e-05/0.4844, allocations: 42.31 kB / 351.4 MB, free: 11.56 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001355/0.4846, allocations: 52.56 kB / 351.5 MB, free: 11.53 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001584/0.4862, allocations: 0.563 MB / 352 MB, free: 11.11 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.699e-05/0.4862, allocations: 3.938 kB / 352 MB, free: 11.1 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.435e-05/0.4863, allocations: 34.45 kB / 352.1 MB, free: 11.09 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.992e-05/0.4864, allocations: 12 kB / 352.1 MB, free: 11.07 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001527/0.4879, allocations: 468.4 kB / 352.5 MB, free: 10.76 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004911/0.4929, allocations: 2.121 MB / 354.7 MB, free: 8.965 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001521/0.4944, allocations: 0.6309 MB / 355.3 MB, free: 8.539 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.531e-05/0.4946, allocations: 4.562 kB / 355.3 MB, free: 8.535 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.084e-05/0.4946, allocations: 45.25 kB / 355.3 MB, free: 8.488 MB / 282.7 MB Notification: Performance of pre-optimization done (n=60): time 3.256e-06/0.4946, allocations: 0 / 355.3 MB, free: 8.488 MB / 282.7 MB Notification: Performance of matching and sorting (n=61): time 0.007185/0.5018, allocations: 1.984 MB / 357.3 MB, free: 6.781 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.507e-05/0.5019, allocations: 55.97 kB / 357.4 MB, free: 6.715 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005972/0.5025, allocations: 332.2 kB / 357.7 MB, free: 6.445 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001051/0.5027, allocations: 36.64 kB / 357.7 MB, free: 6.41 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001975/0.5029, allocations: 278.6 kB / 358 MB, free: 6.184 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002494/0.5031, allocations: 205.5 kB / 358.2 MB, free: 6.008 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.558e-05/0.5032, allocations: 14.69 kB / 358.2 MB, free: 6 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.5034, allocations: 338.4 kB / 358.6 MB, free: 5.672 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006033/0.504, allocations: 164.8 kB / 358.7 MB, free: 5.562 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006054/0.5046, allocations: 217.2 kB / 358.9 MB, free: 5.418 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000603/0.5052, allocations: 183 kB / 359.1 MB, free: 5.309 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.5052, allocations: 0 / 359.1 MB, free: 5.309 MB / 282.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002059/0.5073, allocations: 0.6531 MB / 359.8 MB, free: 4.824 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.072e-05/0.5074, allocations: 8.031 kB / 359.8 MB, free: 4.816 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.5074, allocations: 0 / 359.8 MB, free: 4.816 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001296/0.5087, allocations: 262.1 kB / 360 MB, free: 4.605 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005743/0.5093, allocations: 74.88 kB / 360.1 MB, free: 4.535 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009944/0.5193, allocations: 6.844 MB / 366.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005728/0.5199, allocations: 19.47 kB / 367 MB, free: 13.9 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.66e-05/0.52, allocations: 19.67 kB / 367 MB, free: 13.89 MB / 298.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.0003953/0.5204, allocations: 172.2 kB / 367.1 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001491/0.5206, allocations: 51.34 kB / 367.2 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001653/0.5207, allocations: 67.2 kB / 367.3 MB, free: 13.67 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.173e-05/0.5208, allocations: 8 kB / 367.3 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.211e-05/0.5208, allocations: 4 kB / 367.3 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.292e-05/0.5208, allocations: 3.953 kB / 367.3 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00354/0.5243, allocations: 1.364 MB / 368.6 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.5244, allocations: 0 / 368.6 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000551/0.525, allocations: 59.16 kB / 368.7 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00121/0.5262, allocations: 257.3 kB / 368.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-05/0.5263, allocations: 15.23 kB / 369 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009847/0.5362, allocations: 6.842 MB / 375.8 MB, free: 5.699 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.5362, allocations: 0 / 375.8 MB, free: 5.699 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003038/0.5393, allocations: 1.041 MB / 376.8 MB, free: 4.926 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003904/0.5397, allocations: 165.1 kB / 377 MB, free: 4.762 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.5398, allocations: 10.88 kB / 377 MB, free: 4.758 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004611/0.5403, allocations: 14.44 kB / 377 MB, free: 4.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002375/0.5406, allocations: 62.05 kB / 377.1 MB, free: 4.699 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.541e-05/0.5406, allocations: 14.38 kB / 377.1 MB, free: 4.691 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004485/0.5411, allocations: 263 kB / 377.4 MB, free: 4.48 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5411, allocations: 0 / 377.4 MB, free: 4.48 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.00134/0.5425, allocations: 180.1 kB / 377.5 MB, free: 4.328 MB / 298.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.003488/0.546, allocations: 1.599 MB / 379.1 MB, free: 2.992 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002558/0.5486, allocations: 1.05 MB / 380.2 MB, free: 2.074 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.5487, allocations: 4 kB / 380.2 MB, free: 2.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001957/0.5506, allocations: 0.8414 MB / 381 MB, free: 1.234 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000742/0.5514, allocations: 74.09 kB / 381.1 MB, free: 1.164 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009565/0.561, allocations: 3.613 MB / 384.7 MB, free: 13.47 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00064/0.5617, allocations: 0.9026 MB / 385.6 MB, free: 12.54 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004129/0.5621, allocations: 183.4 kB / 385.8 MB, free: 12.36 MB / 314.7 MB Notification: Performance of SimCode: time 1.383e-06/0.5622, allocations: 0 / 385.8 MB, free: 12.36 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.963/3.525, allocations: 15.83 MB / 401.6 MB, free: 12.54 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat