Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.963/1.963, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003503/0.0003505, allocations: 11.94 kB / 264 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09897/0.09936, allocations: 44.49 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4444/0.5438, allocations: 110.1 MB / 418.6 MB, free: 9.297 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003052/0.5442, allocations: 92.75 kB / 418.7 MB, free: 9.281 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2896/0.8338, allocations: 74.72 MB / 493.5 MB, free: 10.22 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.8339, allocations: 0 / 493.5 MB, free: 10.22 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003687/0.8343, allocations: 91.88 kB / 493.5 MB, free: 10.13 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 823 * Number of variables: 823 Notification: Performance of Generate backend data structure: time 0.01512/0.8494, allocations: 3.458 MB / 497 MB, free: 6.598 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.994e-05/0.8495, allocations: 8.031 kB / 497 MB, free: 6.59 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00195/0.8515, allocations: 455 kB / 497.5 MB, free: 6.133 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004571/0.8561, allocations: 0.5852 MB / 498 MB, free: 5.543 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01269/0.8688, allocations: 3.138 MB / 0.4894 GB, free: 2.348 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003127/0.8692, allocations: 238.2 kB / 0.4897 GB, free: 2.113 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001122/0.8703, allocations: 307.9 kB / 0.49 GB, free: 1.812 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01233/0.8826, allocations: 3.971 MB / 0.4938 GB, free: 13.7 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001243/0.8828, allocations: 11.92 kB / 0.4938 GB, free: 13.69 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000502/0.8833, allocations: 132 kB / 0.494 GB, free: 13.56 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002274/0.8836, allocations: 150.2 kB / 0.4941 GB, free: 13.41 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01064/0.8942, allocations: 3.14 MB / 0.4972 GB, free: 10.26 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03503/0.9293, allocations: 13.4 MB / 0.5103 GB, free: 12.41 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00685/0.9362, allocations: 3.953 MB / 0.5141 GB, free: 7.945 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007493/0.9437, allocations: 2.712 MB / 0.5168 GB, free: 5.145 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.582e-05/0.9438, allocations: 51.55 kB / 0.5168 GB, free: 5.086 MB / 410.7 MB Notification: Performance of pre-optimization done (n=112): time 3.937e-06/0.9438, allocations: 0 / 0.5168 GB, free: 5.086 MB / 410.7 MB Notification: Performance of matching and sorting (n=146): time 0.301/1.245, allocations: 6.463 MB / 0.5231 GB, free: 87 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/1.245, allocations: 69.61 kB / 0.5232 GB, free: 86.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003769/1.249, allocations: 1.648 MB / 0.5248 GB, free: 86.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003207/1.249, allocations: 47.95 kB / 0.5248 GB, free: 86.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001119/1.25, allocations: 1.419 MB / 0.5262 GB, free: 86.12 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006301/1.251, allocations: 0.4972 MB / 0.5267 GB, free: 85.87 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001648/1.251, allocations: 34.34 kB / 0.5268 GB, free: 85.87 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001467/1.251, allocations: 382.4 kB / 0.5271 GB, free: 85.56 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002305/1.254, allocations: 0.7683 MB / 0.5279 GB, free: 85.55 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002612/1.256, allocations: 1.351 MB / 0.5292 GB, free: 84.88 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002797/1.259, allocations: 1.013 MB / 0.5302 GB, free: 84.87 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.059e-05/1.259, allocations: 5.594 kB / 0.5302 GB, free: 84.87 MB / 410.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006542/1.266, allocations: 2.342 MB / 0.5325 GB, free: 84.74 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.304e-05/1.266, allocations: 15.56 kB / 0.5325 GB, free: 84.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.405e-05/1.266, allocations: 18 kB / 0.5325 GB, free: 84.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000509/1.266, allocations: 118.2 kB / 0.5326 GB, free: 84.72 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003563/1.27, allocations: 494.6 kB / 0.5331 GB, free: 84.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001153/1.271, allocations: 1.312 MB / 0.5344 GB, free: 83.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002875/1.274, allocations: 110.9 kB / 0.5345 GB, free: 83.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003727/1.275, allocations: 89.05 kB / 0.5346 GB, free: 83.48 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 83 * 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 (232): * Single equations (assignments): 229 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002933/1.277, allocations: 0.9844 MB / 0.5355 GB, free: 83.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006716/1.278, allocations: 206 kB / 0.5357 GB, free: 83.25 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005586/1.284, allocations: 1.983 MB / 0.5377 GB, free: 83.12 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.416e-05/1.284, allocations: 16.17 kB / 0.5377 GB, free: 83.12 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/1.284, allocations: 2.594 kB / 0.5377 GB, free: 83.12 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.373e-05/1.284, allocations: 8.797 kB / 0.5377 GB, free: 83.12 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01306/1.297, allocations: 5.077 MB / 0.5426 GB, free: 82.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.137e-05/1.297, allocations: 3.875 kB / 0.5426 GB, free: 82.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002561/1.3, allocations: 324.3 kB / 0.5429 GB, free: 82.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004369/1.3, allocations: 95.58 kB / 0.543 GB, free: 82.62 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001209/1.3, allocations: 26.19 kB / 0.5431 GB, free: 82.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009268/1.301, allocations: 1.282 MB / 0.5443 GB, free: 81.37 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/1.301, allocations: 3.969 kB / 0.5443 GB, free: 81.37 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006847/1.308, allocations: 3.26 MB / 0.5475 GB, free: 80.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001453/1.31, allocations: 469.2 kB / 0.5479 GB, free: 80.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004429/1.31, allocations: 26.08 kB / 0.548 GB, free: 80.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001813/1.312, allocations: 84.58 kB / 0.5481 GB, free: 80.59 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002655/1.312, allocations: 93.36 kB / 0.5481 GB, free: 80.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001216/1.312, allocations: 38.88 kB / 0.5482 GB, free: 80.59 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00285/1.315, allocations: 1.26 MB / 0.5494 GB, free: 80.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.315, allocations: 0 / 0.5494 GB, free: 80.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003067/1.318, allocations: 0.5764 MB / 0.55 GB, free: 80.45 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (145): * Single equations (assignments): 142 * 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: 1 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007753/1.326, allocations: 4.679 MB / 0.5545 GB, free: 78.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004756/1.331, allocations: 2.213 MB / 0.5567 GB, free: 78.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.413e-06/1.331, allocations: 3.531 kB / 0.5567 GB, free: 78.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002388/1.333, allocations: 1.192 MB / 0.5579 GB, free: 78.21 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003756/1.337, allocations: 468.3 kB / 0.5583 GB, free: 78.2 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04414/1.381, allocations: 28.97 MB / 0.5866 GB, free: 57.59 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002938/1.384, allocations: 2.27 MB / 0.5888 GB, free: 56.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002909/1.387, allocations: 1.193 MB / 0.59 GB, free: 55.61 MB / 410.7 MB Notification: Performance of SimCode: time 1.833e-06/1.387, allocations: 7.391 kB / 0.59 GB, free: 55.61 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.025/5.412, allocations: 98.05 MB / 0.6858 GB, free: 87.11 MB / 410.7 MB