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.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_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.905/1.905, allocations: 194.9 MB / 211.1 MB, free: 8.555 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005717/0.0005717, allocations: 12 kB / 264.1 MB, free: 3.457 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.2992, allocations: 44.5 MB / 308.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1886/0.4878, allocations: 105.1 MB / 413.7 MB, free: 3.512 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004094/0.4883, allocations: 91.95 kB / 413.8 MB, free: 3.422 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4941/0.9825, allocations: 52.79 MB / 466.6 MB, free: 59.83 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.956e-06/0.9825, allocations: 0 / 466.6 MB, free: 59.83 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002454/0.9828, allocations: 79.88 kB / 466.6 MB, free: 59.75 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.009644/0.9924, allocations: 2.884 MB / 469.5 MB, free: 56.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.9925, allocations: 8.031 kB / 469.5 MB, free: 56.8 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001191/0.9937, allocations: 370.7 kB / 469.9 MB, free: 56.43 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001315/0.995, allocations: 348.1 kB / 470.2 MB, free: 56.08 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006378/1.001, allocations: 1.915 MB / 472.1 MB, free: 54.11 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001652/1.002, allocations: 193 kB / 472.3 MB, free: 53.92 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006359/1.002, allocations: 255.8 kB / 472.6 MB, free: 53.67 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007744/1.01, allocations: 3.221 MB / 475.8 MB, free: 50.3 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001039/1.01, allocations: 4 kB / 475.8 MB, free: 50.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003648/1.011, allocations: 104 kB / 475.9 MB, free: 50.19 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001469/1.011, allocations: 116.9 kB / 476 MB, free: 50.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006743/1.017, allocations: 2.569 MB / 478.6 MB, free: 47.49 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02223/1.04, allocations: 10.45 MB / 489 MB, free: 36.69 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002785/1.043, allocations: 1.418 MB / 490.5 MB, free: 35.21 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004413/1.043, allocations: 223.1 kB / 490.7 MB, free: 34.96 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.985e-05/1.043, allocations: 51.5 kB / 490.7 MB, free: 34.9 MB / 346.7 MB Notification: Performance of pre-optimization done (n=102): time 4.689e-06/1.043, allocations: 0 / 490.7 MB, free: 34.9 MB / 346.7 MB Notification: Performance of matching and sorting (n=130): time 0.02536/1.069, allocations: 7.299 MB / 498 MB, free: 27.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.76e-05/1.069, allocations: 76.58 kB / 498.1 MB, free: 27.39 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003147/1.072, allocations: 1.542 MB / 499.6 MB, free: 25.85 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002692/1.072, allocations: 45.7 kB / 499.7 MB, free: 25.8 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008989/1.073, allocations: 1.26 MB / 0.4892 GB, free: 24.52 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004515/1.073, allocations: 457.4 kB / 0.4896 GB, free: 24.07 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00014/1.074, allocations: 28 kB / 0.4897 GB, free: 24.04 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001232/1.074, allocations: 373.9 kB / 0.49 GB, free: 23.67 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001804/1.076, allocations: 0.8042 MB / 0.4908 GB, free: 22.87 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002135/1.078, allocations: 1.3 MB / 0.4921 GB, free: 21.34 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002203/1.08, allocations: 1.014 MB / 0.4931 GB, free: 20.32 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-05/1.08, allocations: 4 kB / 0.4931 GB, free: 20.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=210) (initialization): time 0.005851/1.086, allocations: 2.533 MB / 0.4955 GB, free: 17.76 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.296e-05/1.086, allocations: 15.94 kB / 0.4956 GB, free: 17.75 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.742e-05/1.086, allocations: 19.95 kB / 0.4956 GB, free: 17.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009138/1.087, allocations: 239.5 kB / 0.4958 GB, free: 17.48 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002878/1.09, allocations: 443.3 kB / 0.4962 GB, free: 17.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002838/1.093, allocations: 3.033 MB / 0.4992 GB, free: 13.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002458/1.095, allocations: 131.7 kB / 0.4993 GB, free: 13.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002139/1.095, allocations: 75.98 kB / 0.4994 GB, free: 13.54 MB / 346.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.001957/1.097, allocations: 0.8174 MB / 0.5002 GB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005642/1.098, allocations: 189.6 kB / 0.5004 GB, free: 12.53 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005046/1.103, allocations: 2.117 MB / 0.5024 GB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.581e-05/1.103, allocations: 16 kB / 0.5025 GB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/1.103, allocations: 0 / 0.5025 GB, free: 10.37 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.116e-05/1.103, allocations: 7.969 kB / 0.5025 GB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01186/1.115, allocations: 4.848 MB / 0.5072 GB, free: 5.414 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.088e-05/1.115, allocations: 0 / 0.5072 GB, free: 5.414 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002192/1.117, allocations: 291.8 kB / 0.5075 GB, free: 5.129 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008445/1.118, allocations: 199.3 kB / 0.5077 GB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000139/1.118, allocations: 27.98 kB / 0.5077 GB, free: 4.895 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002721/1.121, allocations: 3.009 MB / 0.5106 GB, free: 1.617 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.229e-06/1.121, allocations: 7.938 kB / 0.5106 GB, free: 1.609 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007847/1.129, allocations: 3.408 MB / 0.514 GB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00161/1.13, allocations: 450.5 kB / 0.5144 GB, free: 13.63 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003881/1.131, allocations: 23.94 kB / 0.5144 GB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001814/1.133, allocations: 99.86 kB / 0.5145 GB, free: 13.51 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002642/1.133, allocations: 88.91 kB / 0.5146 GB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001411/1.133, allocations: 39.92 kB / 0.5146 GB, free: 13.39 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002901/1.136, allocations: 1.181 MB / 0.5158 GB, free: 12.21 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.31e-07/1.136, allocations: 0 / 0.5158 GB, free: 12.21 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002789/1.139, allocations: 0.5234 MB / 0.5163 GB, free: 11.69 MB / 362.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.00965/1.149, allocations: 4.853 MB / 0.521 GB, free: 6.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006098/1.155, allocations: 2.402 MB / 0.5234 GB, free: 4.266 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.192e-06/1.155, allocations: 3.938 kB / 0.5234 GB, free: 4.262 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003372/1.158, allocations: 1.375 MB / 0.5247 GB, free: 2.816 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003672/1.162, allocations: 448.5 kB / 0.5252 GB, free: 2.379 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04689/1.209, allocations: 26.3 MB / 0.5508 GB, free: 6.934 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002978/1.212, allocations: 2.053 MB / 0.5528 GB, free: 4.84 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.00285/1.215, allocations: 0.5199 MB / 0.5534 GB, free: 4.316 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002366/1.217, allocations: 0.9991 MB / 0.5543 GB, free: 3.316 MB / 394.7 MB Notification: Performance of SimCode: time 1.423e-06/1.217, allocations: 0 / 0.5543 GB, free: 3.316 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4607/1.678, allocations: 47.22 MB / 0.6004 GB, free: 91.22 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002292/1.678, allocations: 249.2 kB / 0.6007 GB, free: 90.97 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.178/5.856, allocations: 0 / 0.6007 GB, free: 90.97 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat