Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.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.QuasiStationary.SinglePhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_QuasiStationary_SinglePhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.909/1.909, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003568/0.0003568, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09361/0.094, allocations: 44.51 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4272/0.5213, allocations: 82.34 MB / 390.9 MB, free: 14.58 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002911/0.5216, allocations: 84.08 kB / 391 MB, free: 14.58 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08069/0.6023, allocations: 22.22 MB / 413.2 MB, free: 8.562 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.6024, allocations: 3.938 kB / 413.2 MB, free: 8.559 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.046e-05/0.6025, allocations: 22.78 kB / 413.2 MB, free: 8.555 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.003501/0.606, allocations: 1.218 MB / 414.4 MB, free: 7.715 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.606, allocations: 7.688 kB / 414.4 MB, free: 7.715 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000393/0.6064, allocations: 157.8 kB / 414.6 MB, free: 7.648 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003048/0.6095, allocations: 372.1 kB / 414.9 MB, free: 7.516 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001083/0.6106, allocations: 0.533 MB / 415.5 MB, free: 7.152 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.874e-05/0.6107, allocations: 77.28 kB / 415.6 MB, free: 7.148 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00021/0.6109, allocations: 104.9 kB / 415.7 MB, free: 7.148 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002716/0.6136, allocations: 1.05 MB / 416.7 MB, free: 6.824 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.466e-05/0.6137, allocations: 3.906 kB / 416.7 MB, free: 6.824 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001491/0.6139, allocations: 45.42 kB / 416.8 MB, free: 6.82 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.954e-05/0.6139, allocations: 27.12 kB / 416.8 MB, free: 6.82 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002661/0.6166, allocations: 0.935 MB / 417.7 MB, free: 6.684 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007989/0.6246, allocations: 3.794 MB / 421.5 MB, free: 4.523 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003431/0.6281, allocations: 2.479 MB / 424 MB, free: 2.469 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001516/0.6283, allocations: 91.81 kB / 424.1 MB, free: 2.371 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001285/0.6296, allocations: 0.503 MB / 424.6 MB, free: 2.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=86): time 3.977e-06/0.6296, allocations: 0 / 424.6 MB, free: 2.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=86): time 0.007113/0.6367, allocations: 1.686 MB / 426.3 MB, free: 1.543 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.742e-05/0.6369, allocations: 197.6 kB / 426.5 MB, free: 1.324 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006402/0.6375, allocations: 414.1 kB / 426.9 MB, free: 1.152 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001047/0.6376, allocations: 47.59 kB / 426.9 MB, free: 1.117 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002947/0.6379, allocations: 461.4 kB / 427.4 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002669/0.6382, allocations: 284.4 kB / 427.6 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.714e-05/0.6383, allocations: 19.69 kB / 427.7 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.736e-05/0.6384, allocations: 350 kB / 428 MB, free: 256 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008712/0.6393, allocations: 282.2 kB / 428.3 MB, free: 220 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.6404, allocations: 0.5242 MB / 428.8 MB, free: 15.88 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001031/0.6414, allocations: 343.5 kB / 429.1 MB, free: 15.84 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.11e-05/0.6414, allocations: 7.328 kB / 429.1 MB, free: 15.84 MB / 330.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003346/0.6448, allocations: 1.072 MB / 430.2 MB, free: 15.58 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.002e-05/0.6449, allocations: 12.23 kB / 430.2 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.969e-05/0.6449, allocations: 7.75 kB / 430.2 MB, free: 15.58 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001357/0.6463, allocations: 269.9 kB / 430.5 MB, free: 15.51 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/0.6475, allocations: 165 kB / 430.7 MB, free: 15.47 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007712/0.6552, allocations: 4.476 MB / 435.1 MB, free: 12.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/0.6566, allocations: 116.8 kB / 435.3 MB, free: 12.38 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-05/0.6567, allocations: 38.91 kB / 435.3 MB, free: 12.38 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition3,$whenCondition2,$whenCondition1,$PRE.iDC2.mean.y,iDC2.mean.y,$PRE.iAC.mean1.y,iAC.mean1.y,$PRE.iAC.mean2.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 88 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 17,2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0006271/0.6574, allocations: 243.2 kB / 435.5 MB, free: 12.25 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.6575, allocations: 73.89 kB / 435.6 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003394/0.661, allocations: 1.006 MB / 436.6 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.661, allocations: 7.5 kB / 436.6 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.661, allocations: 0 / 436.6 MB, free: 11.95 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.991e-05/0.661, allocations: 11.81 kB / 436.6 MB, free: 11.94 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005926/0.667, allocations: 1.977 MB / 438.6 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.667, allocations: 0 / 438.6 MB, free: 11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008893/0.6679, allocations: 109.5 kB / 438.7 MB, free: 10.97 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001256/0.6692, allocations: 256.6 kB / 439 MB, free: 10.84 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.885e-05/0.6693, allocations: 23.83 kB / 439 MB, free: 10.83 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007435/0.6767, allocations: 4.445 MB / 443.4 MB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.6768, allocations: 3.953 kB / 443.4 MB, free: 6.973 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004463/0.6812, allocations: 1.428 MB / 444.9 MB, free: 5.699 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004693/0.6817, allocations: 220 kB / 445.1 MB, free: 5.465 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001569/0.6819, allocations: 16 kB / 445.1 MB, free: 5.449 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008048/0.6827, allocations: 47.97 kB / 445.1 MB, free: 5.402 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002682/0.683, allocations: 72.89 kB / 445.2 MB, free: 5.332 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-05/0.6831, allocations: 24 kB / 445.2 MB, free: 5.309 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006175/0.6837, allocations: 314.9 kB / 445.5 MB, free: 5.004 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6837, allocations: 0 / 445.5 MB, free: 5.004 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001562/0.6853, allocations: 323.2 kB / 445.9 MB, free: 4.688 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (currentSensorQS.pin_p.reference.gamma,iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of discrete variables: 10 ($whenCondition3,$whenCondition2,$whenCondition1,iAC.mean1.y,iAC.mean2.y,rectifierAC.idealDiode1.off,rectifierAC.idealDiode2.off,rectifierAC.idealDiode3.off,rectifierAC.idealDiode4.off,iDC2.mean.y) * Number of discrete states: 3 (iAC.mean1.x,iAC.mean2.x,iDC2.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (59): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,4 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.005166/0.6905, allocations: 2.113 MB / 448 MB, free: 2.539 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0041/0.6946, allocations: 1.12 MB / 449.1 MB, free: 1.395 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.458e-05/0.6947, allocations: 0 / 449.1 MB, free: 1.395 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002549/0.6973, allocations: 0.756 MB / 449.8 MB, free: 0.6133 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001144/0.6984, allocations: 98.47 kB / 449.9 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01806/0.7165, allocations: 7.517 MB / 457.5 MB, free: 8.84 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001094/0.7177, allocations: 1.022 MB / 458.5 MB, free: 7.793 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00101/0.7187, allocations: 319.3 kB / 458.8 MB, free: 7.48 MB / 346.7 MB Notification: Performance of SimCode: time 1.292e-06/0.7187, allocations: 0 / 458.8 MB, free: 7.48 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.249/3.968, allocations: 20.09 MB / 478.9 MB, free: 3.375 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.QuasiStationary.SinglePhase.Examples.Rectifier_res.mat does not exist to compare? outputFormat=mat