Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.039/2.039, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003525/0.0003524, allocations: 8 kB / 264.1 MB, free: 3.465 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.294/0.2944, allocations: 44.5 MB / 308.6 MB, free: 12.79 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.537/0.8315, allocations: 156.3 MB / 464.9 MB, free: 41.16 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003467/0.8319, allocations: 103.1 kB / 465 MB, free: 41.14 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.012/2.843, allocations: 397.2 MB / 0.842 GB, free: 29.2 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.386e-06/2.844, allocations: 0 / 0.842 GB, free: 29.2 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0011/2.845, allocations: 305.3 kB / 0.8423 GB, free: 29.15 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3594 * Number of variables: 3594 Notification: Performance of Generate backend data structure: time 0.05796/2.903, allocations: 12 MB / 0.854 GB, free: 23.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.191e-05/2.903, allocations: 12.03 kB / 0.854 GB, free: 23.61 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008999/2.912, allocations: 1.849 MB / 0.8558 GB, free: 22.1 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05249/2.964, allocations: 6.449 MB / 0.8621 GB, free: 16.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05105/3.015, allocations: 9.685 MB / 0.8716 GB, free: 7.273 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002293/3.018, allocations: 0.9478 MB / 0.8725 GB, free: 6.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008346/3.026, allocations: 1.23 MB / 0.8737 GB, free: 5.125 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.4993/3.525, allocations: 20.89 MB / 0.8941 GB, free: 25.86 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000927/3.526, allocations: 29.98 kB / 0.8941 GB, free: 25.86 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005815/3.532, allocations: 0.5243 MB / 0.8947 GB, free: 25.86 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001423/3.534, allocations: 0.8521 MB / 0.8955 GB, free: 25.83 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06047/3.594, allocations: 18.93 MB / 0.914 GB, free: 25.72 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1791/3.773, allocations: 65.86 MB / 0.9783 GB, free: 3.223 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.06643/3.84, allocations: 46.21 MB / 1.023 GB, free: 11.38 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08518/3.925, allocations: 24.35 MB / 1.047 GB, free: 0 / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4501/4.375, allocations: 109.7 kB / 1.047 GB, free: 77.86 MB / 474.7 MB Notification: Performance of pre-optimization done (n=782): time 1.64e-05/4.375, allocations: 0.5312 kB / 1.047 GB, free: 77.86 MB / 474.7 MB Notification: Performance of matching and sorting (n=824): time 0.2009/4.576, allocations: 46.83 MB / 1.093 GB, free: 70.26 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/4.576, allocations: 128.6 kB / 1.093 GB, free: 70.19 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01193/4.588, allocations: 3.792 MB / 1.097 GB, free: 69.87 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001978/4.59, allocations: 142.3 kB / 1.097 GB, free: 69.84 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004783/4.595, allocations: 5.068 MB / 1.102 GB, free: 67.22 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004856/4.6, allocations: 2.737 MB / 1.105 GB, free: 65.45 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002293/4.603, allocations: 164.1 kB / 1.105 GB, free: 65.45 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001239/4.604, allocations: 0.6818 MB / 1.105 GB, free: 65.12 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01486/4.619, allocations: 5.18 MB / 1.111 GB, free: 65.1 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01849/4.637, allocations: 7.638 MB / 1.118 GB, free: 62.27 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01879/4.656, allocations: 6.521 MB / 1.124 GB, free: 62.08 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001306/4.656, allocations: 24.91 kB / 1.124 GB, free: 62.08 MB / 474.7 MB Notification: Performance of matching and sorting (n=1175) (initialization): time 0.04942/4.706, allocations: 15.89 MB / 1.14 GB, free: 57.22 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.478e-05/4.706, allocations: 48.02 kB / 1.14 GB, free: 57.21 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002083/4.706, allocations: 72.38 kB / 1.14 GB, free: 57.21 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01433/4.72, allocations: 4.13 MB / 1.144 GB, free: 55.93 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01355/4.734, allocations: 1.685 MB / 1.146 GB, free: 55.87 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02172/4.756, allocations: 12.22 MB / 1.158 GB, free: 47.93 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01086/4.767, allocations: 457.1 kB / 1.158 GB, free: 47.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002785/4.77, allocations: 404.3 kB / 1.158 GB, free: 47.7 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 339 * 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 (877): * Single equations (assignments): 821 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0158/4.785, allocations: 4.448 MB / 1.163 GB, free: 45.61 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003878/4.789, allocations: 0.6107 MB / 1.163 GB, free: 45.29 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0493/4.839, allocations: 14.58 MB / 1.178 GB, free: 34.03 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003907/4.839, allocations: 203.3 kB / 1.178 GB, free: 33.86 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.71e-05/4.839, allocations: 0 / 1.178 GB, free: 33.86 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002185/4.839, allocations: 34.78 kB / 1.178 GB, free: 33.86 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.09278/4.932, allocations: 29.24 MB / 1.206 GB, free: 9.473 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001294/4.932, allocations: 5.688 kB / 1.206 GB, free: 9.469 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01025/4.943, allocations: 1.082 MB / 1.207 GB, free: 8.641 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01382/4.957, allocations: 4.017 MB / 1.211 GB, free: 5.305 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002371/4.959, allocations: 174 kB / 1.212 GB, free: 5.152 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4402/5.399, allocations: 12.21 MB / 1.223 GB, free: 67.02 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.672e-06/5.399, allocations: 4.969 kB / 1.223 GB, free: 67.02 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06274/5.462, allocations: 22.14 MB / 1.245 GB, free: 65.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007937/5.47, allocations: 1.791 MB / 1.247 GB, free: 65.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003712/5.474, allocations: 124.4 kB / 1.247 GB, free: 65.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008816/5.483, allocations: 334.1 kB / 1.247 GB, free: 65.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003158/5.486, allocations: 0.5808 MB / 1.248 GB, free: 65.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002451/5.488, allocations: 224.1 kB / 1.248 GB, free: 65.59 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.009524/5.498, allocations: 2.843 MB / 1.251 GB, free: 65.41 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.52e-07/5.498, allocations: 0 / 1.251 GB, free: 65.41 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01578/5.514, allocations: 2.213 MB / 1.253 GB, free: 65.41 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.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 (562): * Single equations (assignments): 506 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * 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 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.06695/5.581, allocations: 24.11 MB / 1.277 GB, free: 62.79 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.04055/5.621, allocations: 13.22 MB / 1.289 GB, free: 59.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.211e-05/5.622, allocations: 6.281 kB / 1.289 GB, free: 59.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02169/5.643, allocations: 6.85 MB / 1.296 GB, free: 56.74 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01396/5.657, allocations: 1.274 MB / 1.297 GB, free: 56.39 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7238/6.381, allocations: 129.6 MB / 1.424 GB, free: 99.68 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02152/6.403, allocations: 8.078 MB / 1.432 GB, free: 98.71 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.01402/6.417, allocations: 2.004 MB / 1.434 GB, free: 98.65 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01331/6.43, allocations: 4.706 MB / 1.438 GB, free: 98.65 MB / 0.4948 GB Notification: Performance of SimCode: time 1.573e-06/6.43, allocations: 3.812 kB / 1.438 GB, free: 98.65 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9483/7.379, allocations: 217 MB / 1.65 GB, free: 94.54 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000315/7.379, allocations: 289.3 kB / 1.651 GB, free: 94.17 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.8/18.18, allocations: 0 / 1.651 GB, free: 94.17 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat