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_VoltageSource.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_VoltageSource,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.854/1.854, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000352/0.000352, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09625/0.09663, allocations: 44.52 MB / 308.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4351/0.5318, allocations: 108.4 MB / 416.9 MB, free: 9.949 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003076/0.5321, allocations: 94.98 kB / 417 MB, free: 9.934 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2659/0.798, allocations: 58.21 MB / 475.2 MB, free: 12.79 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.7981, allocations: 0 / 475.2 MB, free: 12.79 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003719/0.7985, allocations: 83.88 kB / 475.3 MB, free: 12.7 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.01312/0.8116, allocations: 3.244 MB / 478.6 MB, free: 9.387 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.511e-05/0.8117, allocations: 12.03 kB / 478.6 MB, free: 9.375 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001846/0.8135, allocations: 408.9 kB / 479 MB, free: 8.965 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002252/0.8158, allocations: 407.5 kB / 479.4 MB, free: 8.562 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008483/0.8244, allocations: 2.184 MB / 481.5 MB, free: 6.324 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003048/0.8247, allocations: 209.7 kB / 481.8 MB, free: 6.117 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001189/0.8259, allocations: 287.8 kB / 482 MB, free: 5.836 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01179/0.8377, allocations: 3.632 MB / 485.7 MB, free: 2.055 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001378/0.8379, allocations: 7.984 kB / 485.7 MB, free: 2.047 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005707/0.8385, allocations: 124 kB / 485.8 MB, free: 1.926 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002208/0.8387, allocations: 137.4 kB / 485.9 MB, free: 1.789 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01028/0.849, allocations: 2.926 MB / 488.9 MB, free: 14.85 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03281/0.8819, allocations: 11.63 MB / 0.4888 GB, free: 2.883 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004577/0.8865, allocations: 1.959 MB / 0.4907 GB, free: 0.8008 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00056/0.8871, allocations: 223.5 kB / 0.4909 GB, free: 0.5469 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.022e-05/0.8872, allocations: 43.88 kB / 0.4909 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of pre-optimization done (n=127): time 4.127e-06/0.8872, allocations: 0 / 0.4909 GB, free: 0.4961 MB / 378.7 MB Notification: Performance of matching and sorting (n=148): time 0.0275/0.9147, allocations: 7.461 MB / 0.4982 GB, free: 8.93 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.428e-05/0.9148, allocations: 76.67 kB / 0.4983 GB, free: 8.84 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004748/0.9196, allocations: 1.726 MB / 0.5 GB, free: 7.078 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000408/0.92, allocations: 53.7 kB / 0.5 GB, free: 7.02 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00151/0.9216, allocations: 1.318 MB / 0.5013 GB, free: 5.688 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009607/0.9226, allocations: 0.5045 MB / 0.5018 GB, free: 5.176 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002185/0.9228, allocations: 44 kB / 0.5018 GB, free: 5.133 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002417/0.9231, allocations: 378.8 kB / 0.5022 GB, free: 4.754 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002571/0.9256, allocations: 0.8784 MB / 0.5031 GB, free: 3.875 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003118/0.9288, allocations: 1.407 MB / 0.5044 GB, free: 2.234 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003245/0.9321, allocations: 1.115 MB / 0.5055 GB, free: 1.117 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-05/0.9322, allocations: 4 kB / 0.5055 GB, free: 1.113 MB / 394.7 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.00873/0.9409, allocations: 2.9 MB / 0.5084 GB, free: 14.19 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.754e-05/0.941, allocations: 12 kB / 0.5084 GB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.257e-05/0.9411, allocations: 16 kB / 0.5084 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002472/0.9435, allocations: 0.5414 MB / 0.5089 GB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003318/0.9469, allocations: 439.3 kB / 0.5093 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0127/0.9596, allocations: 6.475 MB / 0.5157 GB, free: 6.441 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003013/0.9627, allocations: 135.7 kB / 0.5158 GB, free: 6.309 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003931/0.9631, allocations: 83.98 kB / 0.5159 GB, free: 6.227 MB / 410.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 (208): * Single equations (assignments): 205 * 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.002786/0.9659, allocations: 0.9148 MB / 0.5168 GB, free: 5.301 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007503/0.9667, allocations: 201.5 kB / 0.517 GB, free: 5.102 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007988/0.9747, allocations: 2.66 MB / 0.5196 GB, free: 2.422 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.821e-05/0.9748, allocations: 19.98 kB / 0.5196 GB, free: 2.402 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.511e-05/0.9748, allocations: 4.125 kB / 0.5196 GB, free: 2.398 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-05/0.9749, allocations: 11.92 kB / 0.5196 GB, free: 2.387 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2843/1.259, allocations: 5.722 MB / 0.5252 GB, free: 99.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.92e-05/1.259, allocations: 0 / 0.5252 GB, free: 99.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002341/1.262, allocations: 253.3 kB / 0.5254 GB, free: 99.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002855/1.264, allocations: 0.5886 MB / 0.526 GB, free: 98.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003577/1.265, allocations: 34.88 kB / 0.526 GB, free: 98.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01393/1.279, allocations: 8.218 MB / 0.534 GB, free: 95.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.912e-06/1.279, allocations: 5.125 kB / 0.5341 GB, free: 95.18 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0107/1.29, allocations: 4.021 MB / 0.538 GB, free: 94.66 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001685/1.291, allocations: 492.4 kB / 0.5384 GB, free: 94.56 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007231/1.292, allocations: 41.5 kB / 0.5385 GB, free: 94.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002409/1.295, allocations: 93.34 kB / 0.5386 GB, free: 94.56 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004913/1.295, allocations: 109.9 kB / 0.5387 GB, free: 94.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001678/1.295, allocations: 44.95 kB / 0.5387 GB, free: 94.56 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003669/1.299, allocations: 1.326 MB / 0.54 GB, free: 94.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.11e-07/1.299, allocations: 0.9688 kB / 0.54 GB, free: 94.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003705/1.303, allocations: 0.6133 MB / 0.5406 GB, free: 94.41 MB / 410.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 (122): * Single equations (assignments): 119 * 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.01108/1.314, allocations: 5.466 MB / 0.546 GB, free: 92.81 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006713/1.321, allocations: 2.621 MB / 0.5485 GB, free: 92.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.051e-05/1.321, allocations: 0 / 0.5485 GB, free: 92.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004103/1.325, allocations: 1.605 MB / 0.5501 GB, free: 92.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004214/1.329, allocations: 496.2 kB / 0.5506 GB, free: 92.03 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04763/1.377, allocations: 29.16 MB / 0.579 GB, free: 73.04 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003303/1.38, allocations: 2.241 MB / 0.5812 GB, free: 72.05 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002799/1.383, allocations: 1.144 MB / 0.5823 GB, free: 71.13 MB / 410.7 MB Notification: Performance of SimCode: time 1.834e-06/1.383, allocations: 0 / 0.5823 GB, free: 71.13 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.958/5.341, allocations: 89.79 MB / 0.67 GB, free: 3.977 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_VoltageSource_res.mat does not exist to compare? outputFormat=mat