Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.896/1.896, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003518/0.0003517, allocations: 19.92 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09191/0.0923, allocations: 44.5 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4193/0.5117, allocations: 101 MB / 409.5 MB, free: 12.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002889/0.512, allocations: 90.7 kB / 409.6 MB, free: 12.42 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.185/0.697, allocations: 45.85 MB / 455.4 MB, free: 15.65 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.056e-06/0.697, allocations: 3.938 kB / 455.4 MB, free: 15.65 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002301/0.6973, allocations: 59.94 kB / 455.5 MB, free: 15.59 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.009074/0.7064, allocations: 2.476 MB / 458 MB, free: 13.22 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.7064, allocations: 16.03 kB / 458 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001076/0.7075, allocations: 306.2 kB / 458.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001242/0.7088, allocations: 292.8 kB / 458.6 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005293/0.7141, allocations: 1.587 MB / 460.2 MB, free: 11.47 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001922/0.7143, allocations: 158.5 kB / 460.3 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000677/0.715, allocations: 212.8 kB / 460.5 MB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008444/0.7235, allocations: 2.753 MB / 463.3 MB, free: 8.629 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001286/0.7237, allocations: 11.84 kB / 463.3 MB, free: 8.617 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003707/0.7241, allocations: 88 kB / 463.4 MB, free: 8.531 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001771/0.7243, allocations: 100.1 kB / 463.5 MB, free: 8.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007816/0.7321, allocations: 2.218 MB / 465.7 MB, free: 6.195 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.024/0.7561, allocations: 8.592 MB / 474.3 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004351/0.7605, allocations: 1.728 MB / 476 MB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005212/0.7611, allocations: 227.1 kB / 476.2 MB, free: 11.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.194e-05/0.7612, allocations: 43.56 kB / 476.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of pre-optimization done (n=103): time 3.917e-06/0.7612, allocations: 4 kB / 476.3 MB, free: 11.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=124): time 0.02815/0.7893, allocations: 7.137 MB / 483.4 MB, free: 3.926 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.619e-05/0.7895, allocations: 68.34 kB / 483.5 MB, free: 3.848 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003282/0.7927, allocations: 1.234 MB / 484.7 MB, free: 2.605 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003444/0.7931, allocations: 49.7 kB / 484.8 MB, free: 2.551 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001067/0.7942, allocations: 0.9798 MB / 485.8 MB, free: 1.559 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007932/0.795, allocations: 433.8 kB / 486.2 MB, free: 1.129 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001579/0.7952, allocations: 32 kB / 486.2 MB, free: 1.098 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002189/0.7954, allocations: 362.8 kB / 486.6 MB, free: 0.7344 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002252/0.7977, allocations: 0.7457 MB / 487.3 MB, free: 15.98 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002585/0.8003, allocations: 1.115 MB / 488.4 MB, free: 14.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002685/0.8031, allocations: 0.9276 MB / 489.3 MB, free: 13.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.289e-05/0.8031, allocations: 4 kB / 489.4 MB, free: 13.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.007848/0.811, allocations: 2.494 MB / 491.8 MB, free: 11.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.761e-05/0.811, allocations: 8.625 kB / 491.9 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.91e-05/0.8111, allocations: 12 kB / 491.9 MB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00258/0.8137, allocations: 0.5806 MB / 492.4 MB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002554/0.8163, allocations: 335.5 kB / 492.8 MB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01361/0.8299, allocations: 6.539 MB / 499.3 MB, free: 3.527 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002312/0.8323, allocations: 108 kB / 499.4 MB, free: 3.422 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002327/0.8325, allocations: 63.98 kB / 499.5 MB, free: 3.359 MB / 378.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.002089/0.8346, allocations: 0.6886 MB / 0.4884 GB, free: 2.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005879/0.8352, allocations: 162 kB / 0.4886 GB, free: 2.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007594/0.8428, allocations: 2.373 MB / 0.4909 GB, free: 108 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.8e-05/0.8429, allocations: 12.12 kB / 0.4909 GB, free: 96 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-05/0.8429, allocations: 12 kB / 0.4909 GB, free: 84 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.783e-05/0.843, allocations: 3.984 kB / 0.4909 GB, free: 80 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01411/0.8571, allocations: 4.751 MB / 0.4956 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.569e-05/0.8572, allocations: 7.984 kB / 0.4956 GB, free: 11.23 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001767/0.8589, allocations: 207.7 kB / 0.4958 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003079/0.862, allocations: 0.639 MB / 0.4964 GB, free: 10.38 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002628/0.8623, allocations: 31.98 kB / 0.4964 GB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01598/0.8783, allocations: 8.307 MB / 0.5046 GB, free: 1.637 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-05/0.8784, allocations: 7.984 kB / 0.5046 GB, free: 1.629 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009997/0.8884, allocations: 3.485 MB / 0.508 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001297/0.8897, allocations: 399 kB / 0.5084 GB, free: 13.63 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003575/0.8901, allocations: 31.98 kB / 0.5084 GB, free: 13.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001704/0.8918, allocations: 91.91 kB / 0.5085 GB, free: 13.51 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004395/0.8923, allocations: 104.7 kB / 0.5086 GB, free: 13.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001383/0.8925, allocations: 35.94 kB / 0.5086 GB, free: 13.37 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002306/0.8948, allocations: 0.9492 MB / 0.5095 GB, free: 12.42 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.797e-06/0.8948, allocations: 4 kB / 0.5095 GB, free: 12.42 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002664/0.8975, allocations: 0.5233 MB / 0.51 GB, free: 11.89 MB / 410.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.01108/0.9086, allocations: 4.712 MB / 0.5146 GB, free: 7.094 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008614/0.9172, allocations: 2.36 MB / 0.517 GB, free: 4.68 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.257e-05/0.9173, allocations: 4 kB / 0.517 GB, free: 4.676 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005985/0.9233, allocations: 1.521 MB / 0.5184 GB, free: 3.117 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004293/0.9276, allocations: 369 kB / 0.5188 GB, free: 2.754 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3454/1.273, allocations: 21.02 MB / 0.5393 GB, free: 102.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002293/1.275, allocations: 1.831 MB / 0.5411 GB, free: 101.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001987/1.277, allocations: 0.8345 MB / 0.5419 GB, free: 101.4 MB / 410.7 MB Notification: Performance of SimCode: time 1.272e-06/1.278, allocations: 4.844 kB / 0.5419 GB, free: 101.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.565/4.843, allocations: 67.72 MB / 0.6081 GB, free: 67.39 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat does not exist to compare? outputFormat=mat