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_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.788/1.788, allocations: 171.2 MB / 186.1 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004898/0.0004899, allocations: 16 kB / 233.4 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1081, allocations: 38.76 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4139/0.5221, allocations: 99.74 MB / 371.9 MB, free: 5.609 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003354/0.5225, allocations: 91.5 kB / 372 MB, free: 5.559 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2362/0.7587, allocations: 51.17 MB / 423.1 MB, free: 7.984 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.577e-06/0.7588, allocations: 0 / 423.1 MB, free: 7.984 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003941/0.7592, allocations: 79.88 kB / 423.2 MB, free: 7.906 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.01184/0.7711, allocations: 2.806 MB / 426 MB, free: 5.039 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.547e-05/0.7712, allocations: 16.02 kB / 426 MB, free: 5.023 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001837/0.773, allocations: 370.8 kB / 426.4 MB, free: 4.652 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002118/0.7752, allocations: 336.2 kB / 426.7 MB, free: 4.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006291/0.7815, allocations: 1.743 MB / 428.5 MB, free: 2.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000278/0.7818, allocations: 189 kB / 428.6 MB, free: 2.332 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001038/0.7829, allocations: 247.9 kB / 428.9 MB, free: 2.09 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.266/1.049, allocations: 3.236 MB / 432.1 MB, free: 76.4 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000149/1.049, allocations: 3.781 kB / 432.1 MB, free: 76.4 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005862/1.05, allocations: 107 kB / 432.2 MB, free: 76.4 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001939/1.05, allocations: 122.1 kB / 432.4 MB, free: 76.39 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009849/1.06, allocations: 2.569 MB / 434.9 MB, free: 76.36 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04207/1.102, allocations: 10.37 MB / 445.3 MB, free: 73.74 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004808/1.107, allocations: 1.402 MB / 446.7 MB, free: 73.43 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006161/1.108, allocations: 139.2 kB / 446.8 MB, free: 73.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.544e-05/1.108, allocations: 48.06 kB / 446.9 MB, free: 73.3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=101): time 6.382e-06/1.108, allocations: 0 / 446.9 MB, free: 73.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=129): time 0.03548/1.143, allocations: 6.981 MB / 453.9 MB, free: 72.3 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.434e-05/1.143, allocations: 72.06 kB / 453.9 MB, free: 72.24 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002864/1.146, allocations: 1.422 MB / 455.3 MB, free: 72.08 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003059/1.146, allocations: 49.92 kB / 455.4 MB, free: 72.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009681/1.147, allocations: 1.245 MB / 456.6 MB, free: 71.55 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005677/1.148, allocations: 444.2 kB / 457.1 MB, free: 71.27 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001513/1.148, allocations: 34.56 kB / 457.1 MB, free: 71.27 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/1.148, allocations: 377.7 kB / 457.5 MB, free: 70.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00184/1.15, allocations: 0.7923 MB / 458.3 MB, free: 70.96 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002144/1.152, allocations: 1.307 MB / 459.6 MB, free: 70.24 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002304/1.155, allocations: 1.015 MB / 460.6 MB, free: 69.84 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.902e-05/1.155, allocations: 3.844 kB / 460.6 MB, free: 69.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=209) (initialization): time 0.006357/1.161, allocations: 2.52 MB / 463.1 MB, free: 68.93 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.21e-05/1.161, allocations: 15.34 kB / 463.1 MB, free: 68.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.112e-05/1.161, allocations: 17.94 kB / 463.1 MB, free: 68.93 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009414/1.162, allocations: 242.5 kB / 463.4 MB, free: 68.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003064/1.165, allocations: 438.3 kB / 463.8 MB, free: 68.84 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003108/1.168, allocations: 3.04 MB / 466.9 MB, free: 66.1 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00232/1.171, allocations: 128 kB / 467 MB, free: 66.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002662/1.171, allocations: 68.41 kB / 467 MB, free: 66.06 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (204): * Single equations (assignments): 200 * 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: 2 * 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 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002055/1.173, allocations: 0.8256 MB / 467.9 MB, free: 65.63 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005457/1.174, allocations: 193.3 kB / 468.1 MB, free: 65.53 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005071/1.179, allocations: 2.115 MB / 470.2 MB, free: 64.66 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.541e-05/1.179, allocations: 10.19 kB / 470.2 MB, free: 64.66 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.667e-06/1.179, allocations: 3.781 kB / 470.2 MB, free: 64.66 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.049e-05/1.179, allocations: 5.719 kB / 470.2 MB, free: 64.66 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01285/1.192, allocations: 4.787 MB / 475 MB, free: 62.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.239e-05/1.192, allocations: 0 / 475 MB, free: 62.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002166/1.194, allocations: 290.2 kB / 475.3 MB, free: 62.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008296/1.195, allocations: 205.5 kB / 475.5 MB, free: 62.61 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001205/1.195, allocations: 29.94 kB / 475.5 MB, free: 62.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00278/1.198, allocations: 3.011 MB / 478.5 MB, free: 59.84 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/1.198, allocations: 0 / 478.5 MB, free: 59.84 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006872/1.205, allocations: 3.388 MB / 481.9 MB, free: 58.21 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001287/1.206, allocations: 429.2 kB / 482.3 MB, free: 57.94 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003514/1.206, allocations: 23.25 kB / 482.3 MB, free: 57.92 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001491/1.208, allocations: 102 kB / 482.4 MB, free: 57.91 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000228/1.208, allocations: 83.42 kB / 482.5 MB, free: 57.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001242/1.208, allocations: 36.19 kB / 482.5 MB, free: 57.88 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.00212/1.21, allocations: 1.089 MB / 483.6 MB, free: 57.47 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.1e-07/1.21, allocations: 3.938 kB / 483.6 MB, free: 57.46 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002345/1.213, allocations: 0.5179 MB / 484.2 MB, free: 57.41 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (127): * Single equations (assignments): 123 * 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: 2 * 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 {(2,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007721/1.221, allocations: 4.83 MB / 489 MB, free: 54.63 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00507/1.226, allocations: 2.397 MB / 491.4 MB, free: 53.52 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.943e-06/1.226, allocations: 2 kB / 491.4 MB, free: 53.52 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002637/1.228, allocations: 1.375 MB / 492.8 MB, free: 52.77 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003294/1.232, allocations: 440.1 kB / 493.2 MB, free: 52.63 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03487/1.267, allocations: 25.71 MB / 0.5067 GB, free: 29.58 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002108/1.269, allocations: 2.048 MB / 0.5087 GB, free: 27.95 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002548/1.271, allocations: 0.4985 MB / 0.5092 GB, free: 27.6 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002008/1.273, allocations: 0.949 MB / 0.5102 GB, free: 26.72 MB / 346.7 MB Notification: Performance of SimCode: time 1.102e-06/1.273, allocations: 4 kB / 0.5102 GB, free: 26.72 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1165/1.39, allocations: 45.31 MB / 0.5544 GB, free: 2.465 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002212/1.39, allocations: 252.8 kB / 0.5546 GB, free: 2.211 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.931/5.321, allocations: 0 / 0.5546 GB, free: 2.211 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_CurrentSource_res.mat does not exist to compare? outputFormat=mat