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.SMR_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.SMR_Inverter,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.919/1.919, allocations: 194.8 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000342/0.0003421, allocations: 12 kB / 264.1 MB, free: 3.469 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2845/0.2848, allocations: 44.5 MB / 308.6 MB, free: 12.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2003/0.4852, allocations: 101 MB / 409.5 MB, free: 7.551 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003405/0.4856, allocations: 91.94 kB / 409.6 MB, free: 7.461 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4362/0.9218, allocations: 45.85 MB / 455.5 MB, free: 70.13 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.137e-06/0.9219, allocations: 0 / 455.5 MB, free: 70.13 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.000221/0.9221, allocations: 63.88 kB / 455.5 MB, free: 70.07 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: 550 * Number of variables: 550 Notification: Performance of Generate backend data structure: time 0.008559/0.9307, allocations: 2.479 MB / 458 MB, free: 67.53 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.126e-05/0.9308, allocations: 12.03 kB / 458 MB, free: 67.52 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001273/0.9321, allocations: 315.9 kB / 458.3 MB, free: 67.2 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001241/0.9333, allocations: 292.7 kB / 458.6 MB, free: 66.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00518/0.9385, allocations: 1.584 MB / 460.2 MB, free: 65.26 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001585/0.9388, allocations: 160.2 kB / 460.4 MB, free: 65.1 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005694/0.9393, allocations: 204 kB / 460.6 MB, free: 64.9 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006813/0.9462, allocations: 2.764 MB / 463.3 MB, free: 61.99 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.979e-05/0.9463, allocations: 7.906 kB / 463.3 MB, free: 61.98 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003213/0.9466, allocations: 99.94 kB / 463.4 MB, free: 61.89 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001305/0.9468, allocations: 96.16 kB / 463.5 MB, free: 61.79 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006636/0.9534, allocations: 2.226 MB / 465.7 MB, free: 59.55 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02113/0.9746, allocations: 8.577 MB / 474.3 MB, free: 50.72 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003708/0.9784, allocations: 1.725 MB / 476 MB, free: 48.88 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004507/0.9789, allocations: 227.1 kB / 476.3 MB, free: 48.62 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.756e-05/0.9789, allocations: 43.56 kB / 476.3 MB, free: 48.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=103): time 4.989e-06/0.9789, allocations: 112 / 476.3 MB, free: 48.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=124): time 0.02543/1.004, allocations: 7.143 MB / 483.5 MB, free: 41.3 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.991e-05/1.004, allocations: 64.41 kB / 483.5 MB, free: 41.22 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002529/1.007, allocations: 1.242 MB / 484.8 MB, free: 39.97 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002981/1.007, allocations: 45.7 kB / 484.8 MB, free: 39.92 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007244/1.008, allocations: 1.018 MB / 485.8 MB, free: 38.89 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004416/1.009, allocations: 429.8 kB / 486.2 MB, free: 38.46 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001331/1.009, allocations: 36 kB / 486.3 MB, free: 38.43 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001402/1.009, allocations: 357.9 kB / 486.6 MB, free: 38.07 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001887/1.011, allocations: 0.7457 MB / 487.4 MB, free: 37.32 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002063/1.013, allocations: 1.119 MB / 488.5 MB, free: 36.05 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002207/1.015, allocations: 0.9159 MB / 489.4 MB, free: 35.13 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-05/1.015, allocations: 4 kB / 489.4 MB, free: 35.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.007151/1.022, allocations: 2.595 MB / 492 MB, free: 32.52 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.429e-05/1.022, allocations: 8 kB / 492 MB, free: 32.51 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.533e-05/1.022, allocations: 12 kB / 492 MB, free: 32.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002329/1.025, allocations: 0.5806 MB / 492.6 MB, free: 31.91 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002446/1.027, allocations: 331.5 kB / 492.9 MB, free: 31.58 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01118/1.038, allocations: 6.55 MB / 499.5 MB, free: 24.76 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00219/1.041, allocations: 103.9 kB / 499.6 MB, free: 24.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002102/1.041, allocations: 63.97 kB / 499.6 MB, free: 24.6 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 (156): * Single equations (assignments): 153 * 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.001723/1.043, allocations: 0.7081 MB / 0.4886 GB, free: 23.88 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005516/1.043, allocations: 158 kB / 0.4888 GB, free: 23.72 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006655/1.05, allocations: 2.37 MB / 0.4911 GB, free: 21.34 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.726e-05/1.05, allocations: 12 kB / 0.4911 GB, free: 21.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.192e-05/1.05, allocations: 8 kB / 0.4911 GB, free: 21.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.014e-05/1.05, allocations: 3.984 kB / 0.4911 GB, free: 21.31 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01286/1.063, allocations: 4.758 MB / 0.4958 GB, free: 16.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.467e-05/1.063, allocations: 4 kB / 0.4958 GB, free: 16.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001752/1.065, allocations: 204 kB / 0.496 GB, free: 16.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002852/1.068, allocations: 0.6349 MB / 0.4966 GB, free: 15.61 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002539/1.068, allocations: 35.92 kB / 0.4966 GB, free: 15.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.013/1.081, allocations: 8.3 MB / 0.5047 GB, free: 6.867 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/1.081, allocations: 7.953 kB / 0.5047 GB, free: 6.859 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008529/1.089, allocations: 3.501 MB / 0.5081 GB, free: 3.262 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001233/1.091, allocations: 395.1 kB / 0.5085 GB, free: 2.855 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003864/1.091, allocations: 31.98 kB / 0.5086 GB, free: 2.824 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001744/1.093, allocations: 95.89 kB / 0.5086 GB, free: 2.73 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003652/1.093, allocations: 96.8 kB / 0.5087 GB, free: 2.633 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001332/1.093, allocations: 35.98 kB / 0.5088 GB, free: 2.598 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001946/1.095, allocations: 0.9492 MB / 0.5097 GB, free: 1.648 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.095, allocations: 0 / 0.5097 GB, free: 1.648 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002476/1.098, allocations: 0.5234 MB / 0.5102 GB, free: 1.125 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 (96): * Single equations (assignments): 93 * 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.01086/1.109, allocations: 4.704 MB / 0.5148 GB, free: 12.33 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007085/1.116, allocations: 2.352 MB / 0.5171 GB, free: 9.926 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.785e-06/1.116, allocations: 0 / 0.5171 GB, free: 9.926 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00458/1.121, allocations: 1.522 MB / 0.5186 GB, free: 8.367 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003163/1.124, allocations: 385.2 kB / 0.519 GB, free: 7.992 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04077/1.165, allocations: 20.98 MB / 0.5394 GB, free: 2.301 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002598/1.167, allocations: 1.858 MB / 0.5413 GB, free: 424 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002122/1.169, allocations: 353.7 kB / 0.5416 GB, free: 64 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002122/1.172, allocations: 0.8235 MB / 0.5424 GB, free: 15.23 MB / 394.7 MB Notification: Performance of SimCode: time 1.473e-06/1.172, allocations: 0 / 0.5424 GB, free: 15.23 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3722/1.544, allocations: 43.91 MB / 0.5853 GB, free: 106.9 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000287/1.544, allocations: 238.8 kB / 0.5855 GB, free: 106.6 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.235/5.78, allocations: 0 / 0.5855 GB, free: 106.6 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat