Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_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.SMPM_Inverter,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.687/1.687, allocations: 171.2 MB / 186.1 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003603/0.0003602, allocations: 16 kB / 233.4 MB, free: 2.238 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08243/0.08282, allocations: 38.76 MB / 272.1 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.408/0.4909, allocations: 98.75 MB / 370.9 MB, free: 6.52 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003224/0.4913, allocations: 91.44 kB / 371 MB, free: 6.469 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2569/0.7482, allocations: 49.26 MB / 420.2 MB, free: 10.89 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.286e-06/0.7483, allocations: 0 / 420.2 MB, free: 10.89 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003784/0.7487, allocations: 63.88 kB / 420.3 MB, free: 10.83 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 580 * Number of variables: 580 Notification: Performance of Generate backend data structure: time 0.02689/0.7756, allocations: 2.581 MB / 422.9 MB, free: 8.188 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.562e-05/0.7757, allocations: 8.031 kB / 422.9 MB, free: 8.18 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001791/0.7775, allocations: 328.7 kB / 423.2 MB, free: 7.848 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002022/0.7795, allocations: 320.5 kB / 423.5 MB, free: 7.531 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007661/0.7872, allocations: 1.59 MB / 425.1 MB, free: 5.883 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000368/0.7876, allocations: 168.4 kB / 425.3 MB, free: 5.715 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00127/0.7889, allocations: 219.9 kB / 425.5 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01046/0.7994, allocations: 2.887 MB / 428.4 MB, free: 2.465 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001016/0.7996, allocations: 7.859 kB / 428.4 MB, free: 2.457 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003793/0.8, allocations: 99.98 kB / 428.5 MB, free: 2.359 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000181/0.8002, allocations: 100.3 kB / 428.6 MB, free: 2.258 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2387/1.039, allocations: 2.306 MB / 430.9 MB, free: 79.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02628/1.065, allocations: 9.06 MB / 439.9 MB, free: 77.59 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004109/1.069, allocations: 1.739 MB / 441.7 MB, free: 77 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004684/1.07, allocations: 138.3 kB / 441.8 MB, free: 76.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.834e-05/1.07, allocations: 56.47 kB / 441.9 MB, free: 76.86 MB / 346.7 MB Notification: Performance of pre-optimization done (n=106): time 3.977e-06/1.07, allocations: 0 / 441.9 MB, free: 76.86 MB / 346.7 MB Notification: Performance of matching and sorting (n=129): time 0.02964/1.1, allocations: 7.522 MB / 449.4 MB, free: 75.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/1.1, allocations: 69.09 kB / 449.5 MB, free: 75.67 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002616/1.102, allocations: 1.284 MB / 450.7 MB, free: 75.51 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003109/1.103, allocations: 49.28 kB / 450.8 MB, free: 75.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000832/1.104, allocations: 1.082 MB / 451.9 MB, free: 75.09 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005055/1.104, allocations: 453.9 kB / 452.3 MB, free: 74.8 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/1.104, allocations: 28.78 kB / 452.3 MB, free: 74.8 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001183/1.104, allocations: 370 kB / 452.7 MB, free: 74.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00192/1.106, allocations: 0.7686 MB / 453.5 MB, free: 74.5 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002093/1.108, allocations: 1.18 MB / 454.7 MB, free: 74.03 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002226/1.111, allocations: 0.9439 MB / 455.6 MB, free: 74.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.309e-05/1.111, allocations: 3.875 kB / 455.6 MB, free: 74.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.007277/1.118, allocations: 2.689 MB / 458.3 MB, free: 73.83 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.087e-05/1.118, allocations: 15.02 kB / 458.3 MB, free: 73.83 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.169e-05/1.118, allocations: 11.69 kB / 458.3 MB, free: 73.83 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003146/1.121, allocations: 0.5834 MB / 458.9 MB, free: 73.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00265/1.124, allocations: 353.9 kB / 459.3 MB, free: 73.8 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01226/1.136, allocations: 6.908 MB / 466.2 MB, free: 69.44 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002365/1.139, allocations: 119.1 kB / 466.3 MB, free: 69.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002786/1.139, allocations: 66.88 kB / 466.3 MB, free: 69.39 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * 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 (167): * Single equations (assignments): 164 * 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%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001941/1.141, allocations: 0.7148 MB / 467.1 MB, free: 69.01 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006232/1.142, allocations: 177.5 kB / 467.2 MB, free: 68.92 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006818/1.148, allocations: 2.412 MB / 469.6 MB, free: 68 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.908e-05/1.149, allocations: 14.66 kB / 469.7 MB, free: 68 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/1.149, allocations: 3.875 kB / 469.7 MB, free: 68 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.543e-05/1.149, allocations: 3.75 kB / 469.7 MB, free: 68 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01374/1.162, allocations: 4.926 MB / 474.6 MB, free: 66.05 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.766e-05/1.162, allocations: 3.25 kB / 474.6 MB, free: 66.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001836/1.164, allocations: 219.9 kB / 474.8 MB, free: 66.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002947/1.167, allocations: 0.6429 MB / 475.4 MB, free: 65.87 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002697/1.168, allocations: 44.92 kB / 475.5 MB, free: 65.85 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01406/1.182, allocations: 8.643 MB / 484.1 MB, free: 59.99 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/1.182, allocations: 7.344 kB / 484.1 MB, free: 59.99 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008966/1.191, allocations: 3.619 MB / 487.8 MB, free: 58.32 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001356/1.192, allocations: 408 kB / 488.2 MB, free: 58.05 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003634/1.192, allocations: 30.72 kB / 488.2 MB, free: 58.04 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00161/1.194, allocations: 90.16 kB / 488.3 MB, free: 58.02 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003936/1.194, allocations: 108.8 kB / 488.4 MB, free: 57.99 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001379/1.195, allocations: 42.97 kB / 488.4 MB, free: 57.98 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002224/1.197, allocations: 0.9829 MB / 489.4 MB, free: 57.6 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.91e-07/1.197, allocations: 0 / 489.4 MB, free: 57.6 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002986/1.2, allocations: 0.5501 MB / 490 MB, free: 57.54 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (100): * Single equations (assignments): 97 * 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%) 23,(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.009679/1.21, allocations: 5.009 MB / 495 MB, free: 54.71 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005847/1.216, allocations: 2.419 MB / 497.4 MB, free: 53 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.534e-06/1.216, allocations: 2 kB / 497.4 MB, free: 53 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003932/1.22, allocations: 1.544 MB / 498.9 MB, free: 51.6 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003268/1.223, allocations: 432.4 kB / 499.4 MB, free: 51.27 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04399/1.267, allocations: 22.62 MB / 0.5097 GB, free: 29.43 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002645/1.27, allocations: 1.924 MB / 0.5116 GB, free: 27.88 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002704/1.272, allocations: 374.2 kB / 0.512 GB, free: 27.62 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002399/1.275, allocations: 0.8627 MB / 0.5128 GB, free: 26.83 MB / 346.7 MB Notification: Performance of SimCode: time 1.413e-06/1.275, allocations: 0 / 0.5128 GB, free: 26.83 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3849/1.66, allocations: 46.65 MB / 0.5584 GB, free: 79.54 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002744/1.66, allocations: 235.8 kB / 0.5586 GB, free: 79.3 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.005/5.665, allocations: 0 / 0.5586 GB, free: 79.3 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat