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.SMPM_VoltageSource.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_VoltageSource,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.599/1.599, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003522/0.0003522, allocations: 8 kB / 233.3 MB, free: 2.941 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08013/0.08053, allocations: 38.78 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3922/0.4728, allocations: 103.1 MB / 375.2 MB, free: 3.289 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003215/0.4732, allocations: 89.39 kB / 375.3 MB, free: 3.242 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2461/0.7193, allocations: 56.28 MB / 431.6 MB, free: 252 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.7193, allocations: 0 / 431.6 MB, free: 252 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003688/0.7197, allocations: 75.94 kB / 431.6 MB, free: 176 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 744 * Number of variables: 744 Notification: Performance of Generate backend data structure: time 0.254/0.9738, allocations: 3.134 MB / 434.8 MB, free: 74.33 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.548e-05/0.9739, allocations: 8.75 kB / 434.8 MB, free: 74.33 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002441/0.9763, allocations: 415.6 kB / 435.2 MB, free: 74.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003394/0.9798, allocations: 400.5 kB / 435.6 MB, free: 74.09 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008986/0.9888, allocations: 1.921 MB / 437.5 MB, free: 73.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004335/0.9893, allocations: 214.8 kB / 437.7 MB, free: 73.61 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001547/0.9909, allocations: 279.9 kB / 438 MB, free: 73.61 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01635/1.007, allocations: 3.651 MB / 441.6 MB, free: 73.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001683/1.007, allocations: 11.03 kB / 441.6 MB, free: 73.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000693/1.008, allocations: 122.2 kB / 441.8 MB, free: 73.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002773/1.008, allocations: 130.1 kB / 441.9 MB, free: 73.17 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009795/1.018, allocations: 2.93 MB / 444.8 MB, free: 73.14 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02839/1.047, allocations: 11.52 MB / 456.3 MB, free: 70.3 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003661/1.05, allocations: 1.935 MB / 458.3 MB, free: 69.7 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004081/1.051, allocations: 145.5 kB / 458.4 MB, free: 69.61 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/1.051, allocations: 44.59 kB / 458.5 MB, free: 69.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=126): time 4.579e-06/1.051, allocations: 3.969 kB / 458.5 MB, free: 69.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=147): time 0.02414/1.075, allocations: 7.53 MB / 466 MB, free: 66.99 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.007e-05/1.075, allocations: 70.06 kB / 466.1 MB, free: 66.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003254/1.078, allocations: 1.558 MB / 467.6 MB, free: 66.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003624/1.079, allocations: 53.39 kB / 467.7 MB, free: 66.25 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009998/1.08, allocations: 1.297 MB / 469 MB, free: 65.2 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006669/1.081, allocations: 0.5018 MB / 469.5 MB, free: 64.8 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001668/1.081, allocations: 38.03 kB / 469.5 MB, free: 64.78 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/1.081, allocations: 385.1 kB / 469.9 MB, free: 64.43 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002069/1.083, allocations: 0.877 MB / 470.8 MB, free: 64.12 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002246/1.085, allocations: 1.403 MB / 472.2 MB, free: 63.16 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002473/1.088, allocations: 1.112 MB / 473.3 MB, free: 62.71 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.409e-05/1.088, allocations: 6.625 kB / 473.3 MB, free: 62.71 MB / 346.7 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.007133/1.095, allocations: 2.889 MB / 476.2 MB, free: 61.71 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.712e-05/1.095, allocations: 15.59 kB / 476.2 MB, free: 61.71 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.341e-05/1.095, allocations: 25.11 kB / 476.2 MB, free: 61.71 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002147/1.097, allocations: 0.5472 MB / 476.8 MB, free: 61.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002959/1.1, allocations: 433.1 kB / 477.2 MB, free: 61.56 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01055/1.111, allocations: 6.48 MB / 483.7 MB, free: 57.39 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002501/1.113, allocations: 130.7 kB / 483.8 MB, free: 57.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002646/1.114, allocations: 81.38 kB / 483.9 MB, free: 57.35 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * 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 (207): * Single equations (assignments): 204 * 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 {(5,76.0%) 20,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002256/1.116, allocations: 0.9069 MB / 484.8 MB, free: 56.86 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005869/1.116, allocations: 204.5 kB / 485 MB, free: 56.76 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006689/1.123, allocations: 2.652 MB / 487.6 MB, free: 55.71 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.796e-05/1.123, allocations: 15.72 kB / 487.6 MB, free: 55.71 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.024e-05/1.123, allocations: 3.875 kB / 487.6 MB, free: 55.71 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.409e-05/1.123, allocations: 7.266 kB / 487.6 MB, free: 55.71 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01379/1.137, allocations: 5.632 MB / 493.3 MB, free: 53.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.115e-05/1.137, allocations: 3.312 kB / 493.3 MB, free: 53.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001967/1.139, allocations: 249.9 kB / 493.5 MB, free: 53.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002477/1.142, allocations: 0.5947 MB / 494.1 MB, free: 53.24 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000179/1.142, allocations: 36.48 kB / 494.2 MB, free: 53.22 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01231/1.154, allocations: 8.225 MB / 0.4906 GB, free: 47.12 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/1.154, allocations: 4 kB / 0.4906 GB, free: 47.12 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008629/1.163, allocations: 4.015 MB / 0.4945 GB, free: 43.45 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001382/1.164, allocations: 474.9 kB / 0.495 GB, free: 43.02 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000451/1.165, allocations: 32 kB / 0.495 GB, free: 42.99 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001713/1.166, allocations: 95.69 kB / 0.4951 GB, free: 42.93 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000346/1.167, allocations: 103 kB / 0.4952 GB, free: 42.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001366/1.167, allocations: 42.81 kB / 0.4952 GB, free: 42.83 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002324/1.169, allocations: 1.206 MB / 0.4964 GB, free: 41.79 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.61e-07/1.169, allocations: 0 / 0.4964 GB, free: 41.79 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002892/1.172, allocations: 0.5951 MB / 0.497 GB, free: 41.2 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (121): * Single equations (assignments): 118 * 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 {(5,76.0%) 20,(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.00963/1.182, allocations: 5.425 MB / 0.5023 GB, free: 36.25 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00581/1.188, allocations: 2.658 MB / 0.5049 GB, free: 33.86 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/1.188, allocations: 448 / 0.5049 GB, free: 33.86 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003521/1.191, allocations: 1.598 MB / 0.5065 GB, free: 32.43 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003485/1.195, allocations: 467.4 kB / 0.5069 GB, free: 32.06 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.042/1.237, allocations: 28.33 MB / 0.5346 GB, free: 4.328 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002579/1.239, allocations: 2.222 MB / 0.5367 GB, free: 2.578 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002312/1.242, allocations: 1.103 MB / 0.5378 GB, free: 1.562 MB / 346.7 MB Notification: Performance of SimCode: time 2.605e-06/1.242, allocations: 0 / 0.5378 GB, free: 1.562 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.08/5.322, allocations: 87.36 MB / 0.6231 GB, free: 55.58 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.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat