Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.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.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.926/1.926, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000427/0.0004271, allocations: 12 kB / 264.1 MB, free: 3.473 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3364, allocations: 44.51 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2027/0.5391, allocations: 103.9 MB / 412.5 MB, free: 4.617 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003437/0.5396, allocations: 91.95 kB / 412.6 MB, free: 4.527 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4472/0.9868, allocations: 49.67 MB / 462.2 MB, free: 63.88 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.896e-06/0.9869, allocations: 4 kB / 462.2 MB, free: 63.88 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002731/0.9872, allocations: 63.88 kB / 462.3 MB, free: 63.82 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: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.009376/0.9965, allocations: 2.613 MB / 464.9 MB, free: 61.14 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.976e-05/0.9966, allocations: 8.031 kB / 464.9 MB, free: 61.13 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0013/0.9979, allocations: 328.7 kB / 465.2 MB, free: 60.8 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0017/0.9997, allocations: 316.6 kB / 465.5 MB, free: 60.49 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00557/1.005, allocations: 1.679 MB / 467.2 MB, free: 58.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001841/1.005, allocations: 164.4 kB / 467.4 MB, free: 58.59 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007957/1.006, allocations: 219.9 kB / 467.6 MB, free: 58.37 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008086/1.014, allocations: 2.879 MB / 470.5 MB, free: 55.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001103/1.015, allocations: 4 kB / 470.5 MB, free: 55.34 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003459/1.015, allocations: 95.98 kB / 470.6 MB, free: 55.25 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001377/1.015, allocations: 100.3 kB / 470.7 MB, free: 55.14 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007256/1.022, allocations: 2.305 MB / 473 MB, free: 52.82 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0229/1.045, allocations: 9.094 MB / 482.1 MB, free: 43.45 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0037/1.049, allocations: 1.747 MB / 483.8 MB, free: 41.59 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004592/1.05, allocations: 215.1 kB / 484 MB, free: 41.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/1.05, allocations: 43.56 kB / 484.1 MB, free: 41.29 MB / 346.7 MB Notification: Performance of pre-optimization done (n=107): time 4.268e-06/1.05, allocations: 3.938 kB / 484.1 MB, free: 41.29 MB / 346.7 MB Notification: Performance of matching and sorting (n=130): time 0.02828/1.078, allocations: 7.573 MB / 491.6 MB, free: 33.58 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/1.078, allocations: 68.72 kB / 491.7 MB, free: 33.5 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003026/1.081, allocations: 1.342 MB / 493 MB, free: 32.16 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003228/1.081, allocations: 45.7 kB / 493.1 MB, free: 32.11 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008569/1.082, allocations: 1.085 MB / 494.2 MB, free: 31 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005857/1.083, allocations: 457.4 kB / 494.6 MB, free: 30.55 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001503/1.083, allocations: 32 kB / 494.7 MB, free: 30.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001288/1.083, allocations: 377.9 kB / 495 MB, free: 30.14 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002078/1.085, allocations: 0.7652 MB / 495.8 MB, free: 29.38 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002228/1.088, allocations: 1.18 MB / 497 MB, free: 28.02 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002497/1.09, allocations: 0.955 MB / 497.9 MB, free: 27.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-05/1.09, allocations: 4 kB / 497.9 MB, free: 27.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=198) (initialization): time 0.007456/1.098, allocations: 2.699 MB / 0.4889 GB, free: 24.35 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.637e-05/1.098, allocations: 12 kB / 0.4889 GB, free: 24.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.568e-05/1.098, allocations: 12 kB / 0.4889 GB, free: 24.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002399/1.1, allocations: 0.5844 MB / 0.4895 GB, free: 23.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002587/1.103, allocations: 359.5 kB / 0.4898 GB, free: 23.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01193/1.115, allocations: 6.913 MB / 0.4966 GB, free: 16.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00235/1.117, allocations: 108 kB / 0.4967 GB, free: 16.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002482/1.117, allocations: 63.98 kB / 0.4967 GB, free: 16.03 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 (168): * Single equations (assignments): 165 * 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.001778/1.119, allocations: 0.7237 MB / 0.4975 GB, free: 15.29 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005432/1.12, allocations: 173.8 kB / 0.4976 GB, free: 15.12 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006664/1.126, allocations: 2.43 MB / 0.5 GB, free: 12.67 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.847e-05/1.127, allocations: 12 kB / 0.5 GB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/1.127, allocations: 8 kB / 0.5 GB, free: 12.65 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.028e-05/1.127, allocations: 7.969 kB / 0.5 GB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01349/1.14, allocations: 4.97 MB / 0.5049 GB, free: 7.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/1.14, allocations: 0 / 0.5049 GB, free: 7.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001714/1.142, allocations: 215.7 kB / 0.5051 GB, free: 7.359 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002755/1.145, allocations: 0.6387 MB / 0.5057 GB, free: 6.711 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001887/1.145, allocations: 31.98 kB / 0.5057 GB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01438/1.159, allocations: 8.654 MB / 0.5142 GB, free: 13.62 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/1.159, allocations: 7.938 kB / 0.5142 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01002/1.169, allocations: 3.62 MB / 0.5177 GB, free: 9.875 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001538/1.171, allocations: 418.6 kB / 0.5181 GB, free: 9.445 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000431/1.171, allocations: 35.98 kB / 0.5182 GB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001841/1.173, allocations: 95.89 kB / 0.5183 GB, free: 9.316 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003907/1.174, allocations: 96.86 kB / 0.5183 GB, free: 9.223 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001448/1.174, allocations: 40.36 kB / 0.5184 GB, free: 9.184 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002564/1.176, allocations: 1.031 MB / 0.5194 GB, free: 8.156 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.176, allocations: 0 / 0.5194 GB, free: 8.156 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002934/1.179, allocations: 0.5469 MB / 0.5199 GB, free: 7.609 MB / 362.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 (101): * Single equations (assignments): 98 * 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.01194/1.191, allocations: 5.049 MB / 0.5249 GB, free: 2.461 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007575/1.199, allocations: 2.419 MB / 0.5272 GB, free: 15.99 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.728e-06/1.199, allocations: 0 / 0.5272 GB, free: 15.99 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004995/1.204, allocations: 1.552 MB / 0.5287 GB, free: 14.4 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003841/1.208, allocations: 434.3 kB / 0.5291 GB, free: 13.97 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0462/1.254, allocations: 22.89 MB / 0.5515 GB, free: 6.191 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002743/1.257, allocations: 1.922 MB / 0.5534 GB, free: 4.234 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00225/1.259, allocations: 378.9 kB / 0.5537 GB, free: 3.859 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002197/1.262, allocations: 0.8781 MB / 0.5546 GB, free: 2.98 MB / 394.7 MB Notification: Performance of SimCode: time 1.233e-06/1.262, allocations: 0 / 0.5546 GB, free: 2.98 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3784/1.64, allocations: 47.66 MB / 0.6011 GB, free: 91.01 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002319/1.64, allocations: 235.6 kB / 0.6014 GB, free: 90.77 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.229/5.87, allocations: 0 / 0.6014 GB, free: 90.77 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter_res.mat does not exist to compare? outputFormat=mat