Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.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.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.627/1.627, allocations: 171.2 MB / 186.8 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003539/0.0003539, allocations: 8 kB / 233.3 MB, free: 2.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08043/0.08083, allocations: 38.78 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3823/0.4631, allocations: 95.85 MB / 368 MB, free: 10.39 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003171/0.4635, allocations: 88.94 kB / 368 MB, free: 10.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2161/0.6796, allocations: 45.46 MB / 413.5 MB, free: 2.363 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.6797, allocations: 4 kB / 413.5 MB, free: 2.359 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002633/0.68, allocations: 59.94 kB / 413.6 MB, free: 2.301 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 552 * Number of variables: 552 Notification: Performance of Generate backend data structure: time 0.01025/0.6902, allocations: 2.445 MB / 416 MB, free: 15.79 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.018e-05/0.6903, allocations: 12.03 kB / 416 MB, free: 15.78 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001483/0.6918, allocations: 316 kB / 416.3 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001645/0.6935, allocations: 292.8 kB / 416.6 MB, free: 15.17 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004865/0.6984, allocations: 1.494 MB / 418.1 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002035/0.6987, allocations: 156.2 kB / 418.3 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007518/0.6994, allocations: 215.9 kB / 418.5 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008689/0.7081, allocations: 2.776 MB / 421.2 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.981e-05/0.7083, allocations: 3.938 kB / 421.3 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003537/0.7087, allocations: 88 kB / 421.3 MB, free: 10.24 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001674/0.7088, allocations: 100.2 kB / 421.4 MB, free: 10.14 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007363/0.7162, allocations: 2.222 MB / 423.7 MB, free: 7.898 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2479/0.9642, allocations: 8.546 MB / 432.2 MB, free: 81.33 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004122/0.9684, allocations: 1.726 MB / 433.9 MB, free: 80.72 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000425/0.9689, allocations: 133.9 kB / 434.1 MB, free: 80.63 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.45e-05/0.9689, allocations: 44.77 kB / 434.1 MB, free: 80.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=102): time 3.827e-06/0.9689, allocations: 0 / 434.1 MB, free: 80.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=123): time 0.02803/0.997, allocations: 7.113 MB / 441.2 MB, free: 79.64 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.409e-05/0.9971, allocations: 67.02 kB / 441.3 MB, free: 79.57 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002844/0.9999, allocations: 1.182 MB / 442.5 MB, free: 79.41 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000322/1, allocations: 46.61 kB / 442.5 MB, free: 79.38 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007196/1.001, allocations: 0.9775 MB / 443.5 MB, free: 78.97 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005648/1.002, allocations: 428.8 kB / 443.9 MB, free: 78.75 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/1.002, allocations: 30.94 kB / 443.9 MB, free: 78.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/1.002, allocations: 372 kB / 444.3 MB, free: 78.44 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002091/1.004, allocations: 0.7404 MB / 445 MB, free: 78.44 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00233/1.006, allocations: 1.114 MB / 446.2 MB, free: 78.02 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002394/1.009, allocations: 0.9166 MB / 447.1 MB, free: 78.01 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.781e-05/1.009, allocations: 3.969 kB / 447.1 MB, free: 78.01 MB / 346.7 MB Notification: Performance of matching and sorting (n=184) (initialization): time 0.006722/1.016, allocations: 2.488 MB / 449.6 MB, free: 77.88 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.311e-05/1.016, allocations: 8.5 kB / 449.6 MB, free: 77.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/1.016, allocations: 12.66 kB / 449.6 MB, free: 77.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002315/1.018, allocations: 0.588 MB / 450.2 MB, free: 77.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002362/1.02, allocations: 327 kB / 450.5 MB, free: 77.85 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01109/1.032, allocations: 6.542 MB / 457 MB, free: 75.27 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002163/1.034, allocations: 113.3 kB / 457.1 MB, free: 75.27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002688/1.034, allocations: 59.47 kB / 457.2 MB, free: 75.27 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (155): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001933/1.036, allocations: 0.6944 MB / 457.9 MB, free: 75.14 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005411/1.037, allocations: 158.3 kB / 458.1 MB, free: 75.06 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00656/1.043, allocations: 2.356 MB / 460.4 MB, free: 74.72 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.762e-05/1.043, allocations: 18.3 kB / 460.4 MB, free: 74.71 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/1.043, allocations: 3.656 kB / 460.4 MB, free: 74.71 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.329e-05/1.043, allocations: 10.25 kB / 460.4 MB, free: 74.71 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01294/1.056, allocations: 4.724 MB / 465.2 MB, free: 72.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-05/1.056, allocations: 3.906 kB / 465.2 MB, free: 72.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001699/1.058, allocations: 201.7 kB / 465.4 MB, free: 72.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002837/1.061, allocations: 0.6348 MB / 466 MB, free: 72.68 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000266/1.061, allocations: 28.88 kB / 466 MB, free: 72.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01311/1.074, allocations: 8.318 MB / 474.3 MB, free: 67.02 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/1.074, allocations: 3.812 kB / 474.3 MB, free: 67.02 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008699/1.083, allocations: 3.484 MB / 477.8 MB, free: 65.48 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001256/1.084, allocations: 384.1 kB / 478.2 MB, free: 65.23 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004764/1.085, allocations: 32.75 kB / 478.2 MB, free: 65.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001618/1.086, allocations: 97.05 kB / 478.3 MB, free: 65.19 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003972/1.087, allocations: 96.88 kB / 478.4 MB, free: 65.17 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001286/1.087, allocations: 35.06 kB / 478.5 MB, free: 65.16 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001853/1.089, allocations: 0.9105 MB / 479.4 MB, free: 64.8 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.21e-07/1.089, allocations: 0 / 479.4 MB, free: 64.8 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0027/1.092, allocations: 0.5088 MB / 479.9 MB, free: 64.75 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 92 * 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: 3 {(6,72.2%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009517/1.101, allocations: 4.693 MB / 484.6 MB, free: 62.23 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006108/1.107, allocations: 2.356 MB / 486.9 MB, free: 61.25 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/1.107, allocations: 3.812 kB / 486.9 MB, free: 61.25 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004103/1.111, allocations: 1.518 MB / 488.5 MB, free: 60.51 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00311/1.115, allocations: 368.1 kB / 488.8 MB, free: 60.4 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0342/1.149, allocations: 20.76 MB / 0.4976 GB, free: 42.17 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001966/1.151, allocations: 1.837 MB / 0.4994 GB, free: 40.68 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001808/1.153, allocations: 0.8103 MB / 0.5002 GB, free: 39.94 MB / 346.7 MB Notification: Performance of SimCode: time 1.072e-06/1.153, allocations: 0 / 0.5002 GB, free: 39.94 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.783/4.936, allocations: 66.88 MB / 0.5655 GB, free: 91.67 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat