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.SMR_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.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_2_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.143/2.143, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005101/0.0005102, allocations: 8 kB / 264.1 MB, free: 3.453 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3241/0.3247, allocations: 44.49 MB / 308.6 MB, free: 12.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5759/0.9007, allocations: 150.2 MB / 458.8 MB, free: 42.89 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003671/0.9011, allocations: 107.2 kB / 458.9 MB, free: 42.87 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.849/2.75, allocations: 386.1 MB / 0.8252 GB, free: 41.65 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.196e-06/2.75, allocations: 0 / 0.8252 GB, free: 41.65 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.001048/2.751, allocations: 298.5 kB / 0.8255 GB, free: 41.6 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: 3509 * Number of variables: 3509 Notification: Performance of Generate backend data structure: time 0.05569/2.807, allocations: 11.69 MB / 0.8369 GB, free: 37.52 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/2.807, allocations: 10.16 kB / 0.8369 GB, free: 37.52 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009035/2.816, allocations: 1.793 MB / 0.8387 GB, free: 36.58 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0515/2.868, allocations: 6.379 MB / 0.8449 GB, free: 33.67 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03627/2.904, allocations: 9.485 MB / 0.8542 GB, free: 25.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00144/2.905, allocations: 0.9198 MB / 0.8551 GB, free: 24.79 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006459/2.912, allocations: 1.202 MB / 0.8562 GB, free: 23.61 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07586/2.988, allocations: 20.52 MB / 0.8763 GB, free: 4.164 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009097/2.989, allocations: 23.75 kB / 0.8763 GB, free: 4.141 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006241/2.995, allocations: 0.5159 MB / 0.8768 GB, free: 3.637 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001689/2.997, allocations: 0.8377 MB / 0.8776 GB, free: 2.797 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4545/3.451, allocations: 18.67 MB / 0.8958 GB, free: 41.89 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1731/3.625, allocations: 63.96 MB / 0.9583 GB, free: 23.87 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05824/3.683, allocations: 45.82 MB / 1.003 GB, free: 15.98 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07333/3.756, allocations: 23.65 MB / 1.026 GB, free: 4.496 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001165/3.756, allocations: 101.3 kB / 1.026 GB, free: 4.406 MB / 458.7 MB Notification: Performance of pre-optimization done (n=770): time 1.371e-05/3.756, allocations: 0 / 1.026 GB, free: 4.406 MB / 458.7 MB Notification: Performance of matching and sorting (n=810): time 0.6315/4.388, allocations: 47.01 MB / 1.072 GB, free: 87.6 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.795e-05/4.388, allocations: 120.4 kB / 1.072 GB, free: 87.53 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01132/4.399, allocations: 3.584 MB / 1.076 GB, free: 87.21 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001999/4.401, allocations: 140.1 kB / 1.076 GB, free: 87.18 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004408/4.406, allocations: 4.897 MB / 1.081 GB, free: 84.66 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004439/4.41, allocations: 2.688 MB / 1.083 GB, free: 82.93 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002106/4.413, allocations: 162.9 kB / 1.083 GB, free: 82.93 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001145/4.414, allocations: 0.6727 MB / 1.084 GB, free: 82.61 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01414/4.428, allocations: 5.12 MB / 1.089 GB, free: 82.58 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01649/4.444, allocations: 7.508 MB / 1.096 GB, free: 79.87 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01706/4.462, allocations: 6.435 MB / 1.103 GB, free: 79.77 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001159/4.462, allocations: 20.53 kB / 1.103 GB, free: 79.77 MB / 474.7 MB Notification: Performance of matching and sorting (n=1151) (initialization): time 0.04735/4.509, allocations: 15.68 MB / 1.118 GB, free: 78.59 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.538e-05/4.509, allocations: 39.03 kB / 1.118 GB, free: 78.59 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001847/4.509, allocations: 73.47 kB / 1.118 GB, free: 78.59 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01405/4.524, allocations: 4.134 MB / 1.122 GB, free: 77.33 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0128/4.536, allocations: 1.635 MB / 1.124 GB, free: 77.29 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02106/4.557, allocations: 12.22 MB / 1.136 GB, free: 69.35 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01017/4.568, allocations: 447.2 kB / 1.136 GB, free: 69.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002703/4.57, allocations: 392.1 kB / 1.137 GB, free: 69.12 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 329 * 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 (853): * Single equations (assignments): 797 * 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.01428/4.585, allocations: 4.395 MB / 1.141 GB, free: 67.07 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002783/4.588, allocations: 0.5804 MB / 1.141 GB, free: 66.77 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04538/4.633, allocations: 14.48 MB / 1.156 GB, free: 60.5 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003116/4.633, allocations: 200.6 kB / 1.156 GB, free: 60.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.048e-05/4.633, allocations: 0 / 1.156 GB, free: 60.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000214/4.634, allocations: 37.08 kB / 1.156 GB, free: 60.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08499/4.719, allocations: 28.71 MB / 1.184 GB, free: 41.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.848e-05/4.719, allocations: 4 kB / 1.184 GB, free: 41.59 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009722/4.728, allocations: 1.049 MB / 1.185 GB, free: 40.79 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01297/4.742, allocations: 4.017 MB / 1.189 GB, free: 37.46 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001978/4.744, allocations: 171.8 kB / 1.189 GB, free: 37.31 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01946/4.763, allocations: 12.07 MB / 1.201 GB, free: 25.94 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/4.763, allocations: 8.062 kB / 1.201 GB, free: 25.94 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05603/4.819, allocations: 21.82 MB / 1.222 GB, free: 6.438 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.3874/5.207, allocations: 1.746 MB / 1.224 GB, free: 84.85 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00352/5.21, allocations: 116.2 kB / 1.224 GB, free: 84.85 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008303/5.219, allocations: 327 kB / 1.224 GB, free: 84.85 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002954/5.222, allocations: 0.5778 MB / 1.225 GB, free: 84.84 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002062/5.224, allocations: 216 kB / 1.225 GB, free: 84.84 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007964/5.232, allocations: 2.682 MB / 1.228 GB, free: 84.66 MB / 474.7 MB Notification: Performance of sort global known variables: time 7.61e-07/5.232, allocations: 0 / 1.228 GB, free: 84.66 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01446/5.246, allocations: 2.153 MB / 1.23 GB, free: 84.66 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (546): * Single equations (assignments): 490 * 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.06346/5.31, allocations: 23.53 MB / 1.253 GB, free: 82.48 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03686/5.347, allocations: 13.06 MB / 1.265 GB, free: 81.79 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.425e-05/5.347, allocations: 0 / 1.265 GB, free: 81.79 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02038/5.367, allocations: 6.774 MB / 1.272 GB, free: 81.21 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01171/5.379, allocations: 1.17 MB / 1.273 GB, free: 81.19 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2311/5.61, allocations: 125.3 MB / 1.396 GB, free: 1.969 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4/6.01, allocations: 8.134 MB / 1.403 GB, free: 97.77 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.01376/6.024, allocations: 1.962 MB / 1.405 GB, free: 97.7 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01287/6.037, allocations: 4.532 MB / 1.41 GB, free: 97.7 MB / 490.7 MB Notification: Performance of SimCode: time 1.804e-06/6.037, allocations: 0 / 1.41 GB, free: 97.7 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8905/6.927, allocations: 209.6 MB / 1.615 GB, free: 85.88 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002997/6.928, allocations: 273 kB / 1.615 GB, free: 85.53 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.15/17.08, allocations: 1.125 kB / 1.615 GB, free: 85.53 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat does not exist to compare? outputFormat=mat