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.SMPM_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.933/1.933, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003469/0.0003469, allocations: 12 kB / 264 MB, free: 13.47 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09223/0.09261, allocations: 44.51 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4418/0.5344, allocations: 105.1 MB / 413.7 MB, free: 11.05 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003743/0.5349, allocations: 92.14 kB / 413.7 MB, free: 11.04 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2244/0.7593, allocations: 52.78 MB / 466.5 MB, free: 5.359 MB / 346.7 MB Notification: Performance of FrontEnd: time 6.131e-06/0.7593, allocations: 0 / 466.5 MB, free: 5.359 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.00034/0.7597, allocations: 71.88 kB / 466.6 MB, free: 5.289 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: 657 * Number of variables: 657 Notification: Performance of Generate backend data structure: time 0.01179/0.7715, allocations: 2.892 MB / 469.5 MB, free: 2.5 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.418e-05/0.7716, allocations: 12.03 kB / 469.5 MB, free: 2.488 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001648/0.7733, allocations: 358.7 kB / 469.9 MB, free: 2.129 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001863/0.7751, allocations: 348.1 kB / 470.2 MB, free: 1.785 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007478/0.7827, allocations: 1.923 MB / 472.1 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002812/0.783, allocations: 185 kB / 472.3 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001104/0.7841, allocations: 255.8 kB / 472.5 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01105/0.7952, allocations: 3.225 MB / 475.8 MB, free: 12 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001456/0.7954, allocations: 7.984 kB / 475.8 MB, free: 11.99 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006584/0.7961, allocations: 108 kB / 475.9 MB, free: 11.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002004/0.7963, allocations: 120.9 kB / 476 MB, free: 11.76 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009085/0.8054, allocations: 2.561 MB / 478.6 MB, free: 9.188 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02938/0.8348, allocations: 10.45 MB / 489 MB, free: 14.39 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003734/0.8386, allocations: 1.426 MB / 490.4 MB, free: 12.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005545/0.8392, allocations: 215.2 kB / 490.6 MB, free: 12.65 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.546e-05/0.8393, allocations: 47.5 kB / 490.7 MB, free: 12.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=102): time 4.008e-06/0.8393, allocations: 0 / 490.7 MB, free: 12.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=130): time 0.02926/0.8686, allocations: 7.299 MB / 498 MB, free: 5.176 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.927e-05/0.8687, allocations: 68.66 kB / 498.1 MB, free: 5.098 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004084/0.8728, allocations: 1.542 MB / 499.6 MB, free: 3.559 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003431/0.8732, allocations: 45.7 kB / 499.6 MB, free: 3.508 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001349/0.8745, allocations: 1.205 MB / 0.4891 GB, free: 2.289 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008058/0.8754, allocations: 453.5 kB / 0.4895 GB, free: 1.84 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002163/0.8756, allocations: 36 kB / 0.4896 GB, free: 1.805 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002242/0.8758, allocations: 374.8 kB / 0.4899 GB, free: 1.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002251/0.8781, allocations: 0.7925 MB / 0.4907 GB, free: 0.6367 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002807/0.8809, allocations: 1.315 MB / 0.492 GB, free: 15.08 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002837/0.8838, allocations: 1.017 MB / 0.493 GB, free: 14.07 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.348e-05/0.8839, allocations: 4 kB / 0.493 GB, free: 14.06 MB / 394.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.007132/0.891, allocations: 2.417 MB / 0.4954 GB, free: 11.62 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.227e-05/0.8911, allocations: 12 kB / 0.4954 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.504e-05/0.8912, allocations: 16 kB / 0.4954 GB, free: 11.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001087/0.8923, allocations: 239.8 kB / 0.4956 GB, free: 11.35 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003243/0.8956, allocations: 443.2 kB / 0.496 GB, free: 10.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003883/0.8995, allocations: 3.037 MB / 0.499 GB, free: 7.609 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002766/0.9024, allocations: 127.8 kB / 0.4991 GB, free: 7.484 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003715/0.9028, allocations: 72.06 kB / 0.4992 GB, free: 7.414 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (205): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002621/0.9054, allocations: 0.8174 MB / 0.5 GB, free: 6.586 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006896/0.9061, allocations: 193.6 kB / 0.5002 GB, free: 6.395 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006166/0.9123, allocations: 2.125 MB / 0.5022 GB, free: 4.25 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.199e-05/0.9124, allocations: 12 kB / 0.5023 GB, free: 4.238 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.007e-05/0.9124, allocations: 4 kB / 0.5023 GB, free: 4.234 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.739e-05/0.9124, allocations: 3.984 kB / 0.5023 GB, free: 4.23 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01413/0.9265, allocations: 4.852 MB / 0.507 GB, free: 15.28 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/0.9266, allocations: 4 kB / 0.507 GB, free: 15.28 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002402/0.929, allocations: 283.6 kB / 0.5073 GB, free: 15 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009598/0.93, allocations: 203.5 kB / 0.5075 GB, free: 14.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002328/0.9303, allocations: 24 kB / 0.5075 GB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003729/0.934, allocations: 3.018 MB / 0.5104 GB, free: 11.48 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.506e-06/0.9341, allocations: 7.938 kB / 0.5104 GB, free: 11.47 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008656/0.9427, allocations: 3.404 MB / 0.5138 GB, free: 7.961 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001579/0.9444, allocations: 442.6 kB / 0.5142 GB, free: 7.508 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004957/0.9449, allocations: 27.98 kB / 0.5142 GB, free: 7.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001946/0.9469, allocations: 95.94 kB / 0.5143 GB, free: 7.387 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003232/0.9472, allocations: 84.84 kB / 0.5144 GB, free: 7.305 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001477/0.9474, allocations: 35.98 kB / 0.5144 GB, free: 7.27 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003092/0.9505, allocations: 1.184 MB / 0.5156 GB, free: 6.094 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.31e-07/0.9505, allocations: 0 / 0.5156 GB, free: 6.094 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003079/0.9536, allocations: 0.5234 MB / 0.5161 GB, free: 5.57 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (128): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009939/0.9636, allocations: 4.852 MB / 0.5208 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.2609/1.225, allocations: 2.404 MB / 0.5232 GB, free: 107.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.576e-06/1.225, allocations: 0 / 0.5232 GB, free: 107.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003424/1.228, allocations: 1.375 MB / 0.5245 GB, free: 106.7 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003765/1.232, allocations: 447.2 kB / 0.5249 GB, free: 106.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04214/1.274, allocations: 26.32 MB / 0.5507 GB, free: 90.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002574/1.277, allocations: 2.02 MB / 0.5526 GB, free: 89.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002522/1.279, allocations: 1.012 MB / 0.5536 GB, free: 89.56 MB / 410.7 MB Notification: Performance of SimCode: time 1.353e-06/1.279, allocations: 0 / 0.5536 GB, free: 89.56 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.814/5.093, allocations: 92.41 MB / 0.6439 GB, free: 30.11 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.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat