Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.661/1.661, allocations: 171.1 MB / 186.1 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003576/0.0003576, allocations: 12 kB / 233.4 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1011, allocations: 38.75 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.445/0.5462, allocations: 103.1 MB / 375.2 MB, free: 2.266 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003335/0.5465, allocations: 89.02 kB / 375.3 MB, free: 2.219 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4776/1.024, allocations: 56.27 MB / 431.6 MB, free: 74.62 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.888e-06/1.024, allocations: 1.984 kB / 431.6 MB, free: 74.62 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004079/1.025, allocations: 80.06 kB / 431.7 MB, free: 74.62 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: 744 * Number of variables: 744 Notification: Performance of Generate backend data structure: time 0.01364/1.038, allocations: 3.131 MB / 434.8 MB, free: 73.91 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.384e-05/1.038, allocations: 10.03 kB / 434.8 MB, free: 73.91 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001973/1.04, allocations: 415.2 kB / 435.2 MB, free: 73.86 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002684/1.043, allocations: 398.2 kB / 435.6 MB, free: 73.68 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00666/1.05, allocations: 1.924 MB / 437.5 MB, free: 73.2 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002624/1.05, allocations: 217.1 kB / 437.7 MB, free: 73.2 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001023/1.051, allocations: 286.8 kB / 438 MB, free: 73.19 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01154/1.063, allocations: 3.648 MB / 441.7 MB, free: 72.77 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002016/1.063, allocations: 6.375 kB / 441.7 MB, free: 72.77 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000854/1.064, allocations: 119.9 kB / 441.8 MB, free: 72.77 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002575/1.064, allocations: 134.1 kB / 441.9 MB, free: 72.76 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0101/1.074, allocations: 2.928 MB / 444.8 MB, free: 72.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02987/1.104, allocations: 11.52 MB / 456.4 MB, free: 69.89 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003807/1.108, allocations: 1.933 MB / 458.3 MB, free: 69.29 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004727/1.109, allocations: 143.8 kB / 458.4 MB, free: 69.19 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.144e-05/1.109, allocations: 45.59 kB / 458.5 MB, free: 69.15 MB / 346.7 MB Notification: Performance of pre-optimization done (n=126): time 4.038e-06/1.109, allocations: 0 / 458.5 MB, free: 69.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=147): time 0.02536/1.134, allocations: 7.535 MB / 466 MB, free: 66.78 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.518e-05/1.134, allocations: 67.16 kB / 466.1 MB, free: 66.71 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003667/1.138, allocations: 1.559 MB / 467.6 MB, free: 66.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000377/1.138, allocations: 56.14 kB / 467.7 MB, free: 66.04 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001049/1.139, allocations: 1.37 MB / 469.1 MB, free: 64.99 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007054/1.14, allocations: 0.5051 MB / 469.6 MB, free: 64.6 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001659/1.14, allocations: 35.03 kB / 469.6 MB, free: 64.57 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001408/1.14, allocations: 382.6 kB / 470 MB, free: 64.23 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002102/1.142, allocations: 0.8736 MB / 470.8 MB, free: 63.92 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002424/1.145, allocations: 1.4 MB / 472.2 MB, free: 62.96 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00262/1.148, allocations: 1.117 MB / 473.4 MB, free: 62.51 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-05/1.148, allocations: 7.156 kB / 473.4 MB, free: 62.51 MB / 346.7 MB Notification: Performance of matching and sorting (n=233) (initialization): time 0.008447/1.156, allocations: 3.008 MB / 476.4 MB, free: 61.45 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.852e-05/1.156, allocations: 11.47 kB / 476.4 MB, free: 61.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.283e-05/1.156, allocations: 24.09 kB / 476.4 MB, free: 61.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00224/1.158, allocations: 0.5515 MB / 477 MB, free: 61.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003155/1.162, allocations: 438.3 kB / 477.4 MB, free: 61.29 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01104/1.173, allocations: 6.482 MB / 483.9 MB, free: 57.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002614/1.175, allocations: 130.3 kB / 484 MB, free: 57.09 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002708/1.176, allocations: 84.39 kB / 484.1 MB, free: 57.07 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.002304/1.178, allocations: 0.9008 MB / 485 MB, free: 56.59 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000617/1.179, allocations: 208.5 kB / 485.2 MB, free: 56.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006882/1.186, allocations: 2.643 MB / 487.8 MB, free: 55.43 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.118e-05/1.186, allocations: 16.97 kB / 487.8 MB, free: 55.43 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.449e-05/1.186, allocations: 6.375 kB / 487.9 MB, free: 55.43 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-05/1.186, allocations: 7.359 kB / 487.9 MB, free: 55.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01499/1.201, allocations: 5.643 MB / 493.5 MB, free: 53.14 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.197e-05/1.201, allocations: 0 / 493.5 MB, free: 53.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002067/1.203, allocations: 247.4 kB / 493.7 MB, free: 53.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002569/1.205, allocations: 0.5901 MB / 494.3 MB, free: 52.96 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000265/1.206, allocations: 37.23 kB / 494.4 MB, free: 52.94 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01284/1.219, allocations: 8.234 MB / 0.4908 GB, free: 46.48 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.482e-06/1.219, allocations: 3.469 kB / 0.4908 GB, free: 46.48 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009236/1.228, allocations: 4.01 MB / 0.4947 GB, free: 42.81 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001644/1.23, allocations: 468.7 kB / 0.4952 GB, free: 42.38 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005018/1.23, allocations: 35.28 kB / 0.4952 GB, free: 42.35 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001858/1.232, allocations: 99.69 kB / 0.4953 GB, free: 42.29 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003379/1.232, allocations: 98.72 kB / 0.4954 GB, free: 42.23 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001447/1.232, allocations: 47.5 kB / 0.4955 GB, free: 42.18 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002592/1.235, allocations: 1.196 MB / 0.4966 GB, free: 41.15 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.235, allocations: 0 / 0.4966 GB, free: 41.15 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003206/1.238, allocations: 0.597 MB / 0.4972 GB, free: 40.56 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.01045/1.249, allocations: 5.435 MB / 0.5025 GB, free: 35.6 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0063/1.255, allocations: 2.649 MB / 0.5051 GB, free: 33.21 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/1.255, allocations: 4.062 kB / 0.5051 GB, free: 33.21 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003912/1.259, allocations: 1.594 MB / 0.5067 GB, free: 31.78 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003953/1.263, allocations: 468.1 kB / 0.5071 GB, free: 31.4 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0444/1.308, allocations: 28.3 MB / 0.5348 GB, free: 3.703 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00268/1.31, allocations: 2.255 MB / 0.537 GB, free: 1.934 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002545/1.313, allocations: 479.7 kB / 0.5374 GB, free: 1.605 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00238/1.315, allocations: 1.085 MB / 0.5385 GB, free: 0.6016 MB / 346.7 MB Notification: Performance of SimCode: time 1.533e-06/1.315, allocations: 4 kB / 0.5385 GB, free: 0.5977 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3748/1.69, allocations: 52.87 MB / 0.5901 GB, free: 76.19 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002968/1.691, allocations: 240.3 kB / 0.5903 GB, free: 75.96 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.309/6, allocations: 3.953 kB / 0.5903 GB, free: 75.95 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat does not exist to compare? outputFormat=mat