Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.038/2.038, allocations: 194.9 MB / 211.1 MB, free: 8.57 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005003/0.0005003, allocations: 11.98 kB / 264.1 MB, free: 3.473 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.3456, allocations: 44.5 MB / 308.6 MB, free: 12.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.566/0.9116, allocations: 110.1 MB / 418.7 MB, free: 47.34 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003739/0.9121, allocations: 93.73 kB / 418.8 MB, free: 47.33 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2676/1.18, allocations: 74.73 MB / 493.5 MB, free: 22.86 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.046e-06/1.18, allocations: 0 / 493.5 MB, free: 22.86 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003497/1.18, allocations: 91.81 kB / 493.6 MB, free: 22.77 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: 823 * Number of variables: 823 Notification: Performance of Generate backend data structure: time 0.01439/1.195, allocations: 3.462 MB / 497 MB, free: 19.24 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.181e-05/1.195, allocations: 8.031 kB / 497 MB, free: 19.23 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002052/1.197, allocations: 455 kB / 497.5 MB, free: 18.77 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004468/1.201, allocations: 0.5891 MB / 498.1 MB, free: 18.18 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01202/1.213, allocations: 3.134 MB / 0.4895 GB, free: 14.99 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002802/1.214, allocations: 234.3 kB / 0.4897 GB, free: 14.76 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001224/1.215, allocations: 311.9 kB / 0.49 GB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01196/1.227, allocations: 3.975 MB / 0.4939 GB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001299/1.227, allocations: 7.938 kB / 0.4939 GB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004799/1.227, allocations: 128 kB / 0.494 GB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002046/1.228, allocations: 142.2 kB / 0.4941 GB, free: 10.06 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01017/1.238, allocations: 3.148 MB / 0.4972 GB, free: 6.906 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03549/1.273, allocations: 13.4 MB / 0.5103 GB, free: 9.047 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007289/1.281, allocations: 3.946 MB / 0.5141 GB, free: 4.594 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008065/1.289, allocations: 2.72 MB / 0.5168 GB, free: 1.785 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.756e-05/1.289, allocations: 43.56 kB / 0.5168 GB, free: 1.734 MB / 362.7 MB Notification: Performance of pre-optimization done (n=112): time 4.96e-06/1.289, allocations: 4 kB / 0.5168 GB, free: 1.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=146): time 0.02506/1.314, allocations: 6.458 MB / 0.5232 GB, free: 11.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.938e-05/1.314, allocations: 76.61 kB / 0.5232 GB, free: 11.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004402/1.319, allocations: 1.645 MB / 0.5248 GB, free: 9.406 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003458/1.319, allocations: 49.64 kB / 0.5249 GB, free: 9.352 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001765/1.321, allocations: 1.497 MB / 0.5263 GB, free: 7.836 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008639/1.322, allocations: 0.493 MB / 0.5268 GB, free: 7.336 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001882/1.322, allocations: 36 kB / 0.5269 GB, free: 7.301 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002585/1.322, allocations: 381.9 kB / 0.5272 GB, free: 6.922 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00235/1.325, allocations: 0.7691 MB / 0.528 GB, free: 6.148 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002974/1.328, allocations: 1.345 MB / 0.5293 GB, free: 4.551 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002945/1.331, allocations: 1.018 MB / 0.5303 GB, free: 3.531 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.95e-05/1.331, allocations: 4 kB / 0.5303 GB, free: 3.527 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.007534/1.338, allocations: 2.462 MB / 0.5327 GB, free: 1.047 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.94e-05/1.338, allocations: 16 kB / 0.5327 GB, free: 1.031 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.35e-05/1.338, allocations: 20.06 kB / 0.5327 GB, free: 1.012 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005707/1.339, allocations: 122.5 kB / 0.5328 GB, free: 0.8828 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003907/1.343, allocations: 487.2 kB / 0.5333 GB, free: 416 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001575/1.344, allocations: 1.311 MB / 0.5346 GB, free: 14.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002904/1.347, allocations: 116.1 kB / 0.5347 GB, free: 14.85 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004151/1.348, allocations: 83.98 kB / 0.5348 GB, free: 14.77 MB / 394.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.003289/1.351, allocations: 0.9812 MB / 0.5357 GB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007737/1.352, allocations: 201.5 kB / 0.5359 GB, free: 13.57 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006204/1.358, allocations: 1.993 MB / 0.5379 GB, free: 11.56 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.435e-05/1.358, allocations: 16 kB / 0.5379 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.705e-05/1.358, allocations: 11.89 kB / 0.5379 GB, free: 11.54 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-05/1.358, allocations: 7.969 kB / 0.5379 GB, free: 11.53 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01542/1.374, allocations: 5.058 MB / 0.5428 GB, free: 6.363 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-05/1.374, allocations: 4.25 kB / 0.5428 GB, free: 6.359 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003091/1.377, allocations: 327.6 kB / 0.5432 GB, free: 6.039 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005455/1.378, allocations: 98.42 kB / 0.5433 GB, free: 5.934 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002955/1.378, allocations: 31.98 kB / 0.5433 GB, free: 5.902 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001383/1.379, allocations: 1.276 MB / 0.5445 GB, free: 4.492 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/1.379, allocations: 4 kB / 0.5445 GB, free: 4.488 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008766/1.388, allocations: 3.255 MB / 0.5477 GB, free: 1.105 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001729/1.39, allocations: 474.4 kB / 0.5482 GB, free: 0.6211 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004226/1.39, allocations: 31.95 kB / 0.5482 GB, free: 0.5898 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001871/1.392, allocations: 83.89 kB / 0.5483 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000265/1.393, allocations: 89.12 kB / 0.5484 GB, free: 428 kB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001415/1.393, allocations: 48.05 kB / 0.5484 GB, free: 380 kB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00321/1.396, allocations: 1.258 MB / 0.5496 GB, free: 15.09 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.31e-07/1.396, allocations: 0 / 0.5496 GB, free: 15.09 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00319/1.399, allocations: 0.578 MB / 0.5502 GB, free: 14.51 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.009809/1.409, allocations: 4.675 MB / 0.5548 GB, free: 9.746 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006228/1.415, allocations: 2.212 MB / 0.5569 GB, free: 7.48 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/1.415, allocations: 0 / 0.5569 GB, free: 7.48 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003171/1.419, allocations: 1.194 MB / 0.5581 GB, free: 6.234 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004405/1.423, allocations: 483.3 kB / 0.5586 GB, free: 5.758 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3587/1.782, allocations: 28.96 MB / 0.5868 GB, free: 80.06 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002626/1.784, allocations: 2.312 MB / 0.5891 GB, free: 79.31 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003331/1.788, allocations: 0.5103 MB / 0.5896 GB, free: 79.29 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002733/1.791, allocations: 1.175 MB / 0.5907 GB, free: 79.28 MB / 410.7 MB Notification: Performance of SimCode: time 1.904e-06/1.791, allocations: 0 / 0.5907 GB, free: 79.28 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1271/1.918, allocations: 50.86 MB / 0.6404 GB, free: 68.34 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003231/1.918, allocations: 226 kB / 0.6406 GB, free: 68.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.44/6.359, allocations: 3.938 kB / 0.6406 GB, free: 68.1 MB / 410.7 MB