Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.666/1.666, allocations: 171.1 MB / 186.7 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004857/0.0004858, allocations: 8 kB / 233.3 MB, free: 0.832 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08471/0.08525, allocations: 38.78 MB / 272.1 MB, free: 9.973 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3802/0.4655, allocations: 99.74 MB / 371.9 MB, free: 15.09 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003239/0.4659, allocations: 91.94 kB / 371.9 MB, free: 15 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4351/0.9009, allocations: 51.14 MB / 423.1 MB, free: 81.43 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.901, allocations: 3.953 kB / 423.1 MB, free: 81.43 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003022/0.9013, allocations: 70.19 kB / 423.2 MB, free: 81.42 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.0113/0.9126, allocations: 2.815 MB / 426 MB, free: 80.31 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.9127, allocations: 13.19 kB / 426 MB, free: 80.31 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001706/0.9144, allocations: 369 kB / 426.3 MB, free: 80.26 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001997/0.9164, allocations: 344.9 kB / 426.7 MB, free: 80.1 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006019/0.9225, allocations: 1.745 MB / 428.4 MB, free: 79.64 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002728/0.9228, allocations: 192.5 kB / 428.6 MB, free: 79.63 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001118/0.924, allocations: 244.8 kB / 428.9 MB, free: 79.63 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009779/0.9338, allocations: 3.237 MB / 432.1 MB, free: 79.23 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001179/0.9339, allocations: 10 kB / 432.1 MB, free: 79.22 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000391/0.9343, allocations: 107.5 kB / 432.2 MB, free: 79.22 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001847/0.9345, allocations: 115.4 kB / 432.3 MB, free: 79.21 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008701/0.9432, allocations: 2.574 MB / 434.9 MB, free: 79.18 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02583/0.9691, allocations: 10.37 MB / 445.3 MB, free: 76.01 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00294/0.9721, allocations: 1.4 MB / 446.7 MB, free: 75.29 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004205/0.9726, allocations: 136.5 kB / 446.8 MB, free: 75.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.119e-05/0.9726, allocations: 43.25 kB / 446.8 MB, free: 75.15 MB / 346.7 MB Notification: Performance of pre-optimization done (n=101): time 3.857e-06/0.9726, allocations: 0 / 446.8 MB, free: 75.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=129): time 0.02395/0.9966, allocations: 7 MB / 453.8 MB, free: 72.44 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.868e-05/0.9967, allocations: 65.22 kB / 453.9 MB, free: 72.38 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002857/0.9995, allocations: 1.422 MB / 455.3 MB, free: 71.84 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002998/0.9999, allocations: 52.39 kB / 455.4 MB, free: 71.79 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008028/1.001, allocations: 1.183 MB / 456.6 MB, free: 70.82 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005751/1.001, allocations: 449.5 kB / 457 MB, free: 70.48 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/1.001, allocations: 34.22 kB / 457 MB, free: 70.46 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/1.002, allocations: 383.9 kB / 457.4 MB, free: 70.11 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001869/1.003, allocations: 0.7887 MB / 458.2 MB, free: 69.83 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002128/1.006, allocations: 1.31 MB / 459.5 MB, free: 68.89 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002327/1.008, allocations: 1.015 MB / 460.5 MB, free: 68.47 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-05/1.008, allocations: 3.875 kB / 460.5 MB, free: 68.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=209) (initialization): time 0.005786/1.014, allocations: 2.409 MB / 462.9 MB, free: 67.61 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.755e-05/1.014, allocations: 12.44 kB / 462.9 MB, free: 67.61 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.257e-05/1.014, allocations: 14.5 kB / 463 MB, free: 67.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009222/1.015, allocations: 247.9 kB / 463.2 MB, free: 67.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002987/1.018, allocations: 436.2 kB / 463.6 MB, free: 67.5 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002968/1.021, allocations: 3.043 MB / 466.7 MB, free: 64.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002374/1.023, allocations: 122.4 kB / 466.8 MB, free: 64.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003091/1.024, allocations: 79.03 kB / 466.9 MB, free: 64.69 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.002143/1.026, allocations: 0.8211 MB / 467.7 MB, free: 64.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000547/1.026, allocations: 183.9 kB / 467.9 MB, free: 64.13 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00499/1.031, allocations: 2.117 MB / 470 MB, free: 63.25 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.565e-05/1.031, allocations: 11.56 kB / 470 MB, free: 63.25 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/1.031, allocations: 3.719 kB / 470 MB, free: 63.25 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.142e-05/1.032, allocations: 6.281 kB / 470 MB, free: 63.25 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01187/1.043, allocations: 4.782 MB / 474.8 MB, free: 61.26 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/1.043, allocations: 7.906 kB / 474.8 MB, free: 61.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0022/1.046, allocations: 283.6 kB / 475.1 MB, free: 61.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008448/1.047, allocations: 197.7 kB / 475.3 MB, free: 61.16 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001609/1.047, allocations: 25.19 kB / 475.3 MB, free: 61.15 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002827/1.05, allocations: 3.018 MB / 478.3 MB, free: 58.39 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/1.05, allocations: 7.281 kB / 478.3 MB, free: 58.39 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007211/1.057, allocations: 3.385 MB / 481.7 MB, free: 56.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001291/1.058, allocations: 424.4 kB / 482.1 MB, free: 56.47 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004184/1.059, allocations: 34.98 kB / 482.2 MB, free: 56.45 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001598/1.06, allocations: 92.45 kB / 482.2 MB, free: 56.43 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002809/1.061, allocations: 80.31 kB / 482.3 MB, free: 56.42 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001256/1.061, allocations: 38.31 kB / 482.4 MB, free: 56.41 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002245/1.063, allocations: 1.091 MB / 483.4 MB, free: 56 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.063, allocations: 0 / 483.4 MB, free: 56 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002686/1.066, allocations: 0.5136 MB / 484 MB, free: 55.94 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.008155/1.074, allocations: 4.83 MB / 488.8 MB, free: 52.26 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00519/1.079, allocations: 2.395 MB / 491.2 MB, free: 50.07 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.376e-06/1.079, allocations: 2.578 kB / 491.2 MB, free: 50.07 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002855/1.082, allocations: 1.376 MB / 492.6 MB, free: 48.78 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003451/1.085, allocations: 442 kB / 493 MB, free: 48.43 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03619/1.122, allocations: 25.73 MB / 0.5066 GB, free: 23.18 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002366/1.124, allocations: 2.016 MB / 0.5085 GB, free: 21.56 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002316/1.126, allocations: 0.9651 MB / 0.5095 GB, free: 20.67 MB / 346.7 MB Notification: Performance of SimCode: time 1.473e-06/1.127, allocations: 0 / 0.5095 GB, free: 20.67 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.983/5.11, allocations: 90.63 MB / 0.598 GB, free: 77.11 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat