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_Inverter.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_Inverter,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.624/1.624, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003795/0.0003795, allocations: 12 kB / 233.3 MB, free: 2.922 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0812/0.08162, allocations: 38.77 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3823/0.464, allocations: 98.76 MB / 370.9 MB, free: 7.141 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003225/0.4643, allocations: 88.14 kB / 371 MB, free: 7.094 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2324/0.6967, allocations: 49.26 MB / 420.2 MB, free: 11.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.6968, allocations: 0 / 420.2 MB, free: 11.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002872/0.6971, allocations: 67.88 kB / 420.3 MB, free: 11.45 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: 580 * Number of variables: 580 Notification: Performance of Generate backend data structure: time 0.009857/0.7069, allocations: 2.578 MB / 422.9 MB, free: 8.809 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.707, allocations: 8.031 kB / 422.9 MB, free: 8.801 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001438/0.7085, allocations: 324.8 kB / 423.2 MB, free: 8.473 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001679/0.7102, allocations: 320.5 kB / 423.5 MB, free: 8.156 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005339/0.7155, allocations: 1.593 MB / 425.1 MB, free: 6.504 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002426/0.7158, allocations: 164.4 kB / 425.3 MB, free: 6.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009205/0.7168, allocations: 227.9 kB / 425.5 MB, free: 6.117 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009772/0.7266, allocations: 2.887 MB / 428.4 MB, free: 3.086 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000126/0.7267, allocations: 11.86 kB / 428.4 MB, free: 3.074 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005612/0.7273, allocations: 92 kB / 428.5 MB, free: 2.984 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002085/0.7275, allocations: 100.3 kB / 428.6 MB, free: 2.883 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008756/0.7363, allocations: 2.316 MB / 430.9 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2524/0.9887, allocations: 9.049 MB / 439.9 MB, free: 78.04 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003878/0.9926, allocations: 1.738 MB / 441.7 MB, free: 77.45 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004247/0.9931, allocations: 134.9 kB / 441.8 MB, free: 77.35 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.9932, allocations: 45.78 kB / 441.8 MB, free: 77.31 MB / 346.7 MB Notification: Performance of pre-optimization done (n=106): time 3.817e-06/0.9932, allocations: 1.156 kB / 441.8 MB, free: 77.31 MB / 346.7 MB Notification: Performance of matching and sorting (n=129): time 0.02875/1.022, allocations: 7.536 MB / 449.4 MB, free: 76.18 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.985e-05/1.022, allocations: 70.39 kB / 449.4 MB, free: 76.11 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002687/1.025, allocations: 1.279 MB / 450.7 MB, free: 75.95 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003454/1.025, allocations: 49.64 kB / 450.8 MB, free: 75.92 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007424/1.026, allocations: 1.041 MB / 451.8 MB, free: 75.49 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006432/1.027, allocations: 451.9 kB / 452.3 MB, free: 75.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/1.027, allocations: 34.19 kB / 452.3 MB, free: 75.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001303/1.027, allocations: 367.3 kB / 452.6 MB, free: 74.94 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001996/1.029, allocations: 0.7695 MB / 453.4 MB, free: 74.94 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00225/1.031, allocations: 1.177 MB / 454.6 MB, free: 74.47 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002364/1.034, allocations: 0.9503 MB / 455.5 MB, free: 74.46 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.226e-05/1.034, allocations: 3.906 kB / 455.5 MB, free: 74.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.007045/1.041, allocations: 2.587 MB / 458.1 MB, free: 74.32 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.772e-05/1.041, allocations: 13 kB / 458.1 MB, free: 74.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.84e-05/1.041, allocations: 11.69 kB / 458.2 MB, free: 74.32 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00231/1.043, allocations: 0.5854 MB / 458.7 MB, free: 74.3 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003546/1.047, allocations: 357 kB / 459.1 MB, free: 74.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01895/1.066, allocations: 6.901 MB / 466 MB, free: 70.19 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003408/1.069, allocations: 123.4 kB / 466.1 MB, free: 70.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000437/1.07, allocations: 59.19 kB / 466.2 MB, free: 70.14 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 57 * 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 (167): * Single equations (assignments): 164 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,72.2%) 23,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002822/1.072, allocations: 0.7163 MB / 466.9 MB, free: 69.76 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000745/1.073, allocations: 173.8 kB / 467.1 MB, free: 69.67 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01053/1.084, allocations: 2.416 MB / 469.5 MB, free: 68.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.751e-05/1.084, allocations: 13.38 kB / 469.5 MB, free: 68.75 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.431e-05/1.084, allocations: 7.594 kB / 469.5 MB, free: 68.75 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.447e-05/1.084, allocations: 7.734 kB / 469.5 MB, free: 68.75 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01331/1.097, allocations: 4.923 MB / 474.4 MB, free: 66.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.56e-05/1.097, allocations: 0 / 474.4 MB, free: 66.8 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001765/1.099, allocations: 219 kB / 474.6 MB, free: 66.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00281/1.102, allocations: 0.6464 MB / 475.3 MB, free: 66.62 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002813/1.102, allocations: 37.56 kB / 475.3 MB, free: 66.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01398/1.116, allocations: 8.654 MB / 484 MB, free: 60.73 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/1.116, allocations: 3.75 kB / 484 MB, free: 60.73 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008974/1.125, allocations: 3.616 MB / 487.6 MB, free: 59.07 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001332/1.127, allocations: 409.7 kB / 488 MB, free: 58.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005347/1.127, allocations: 31.09 kB / 488 MB, free: 58.78 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001815/1.129, allocations: 91.8 kB / 488.1 MB, free: 58.76 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000405/1.129, allocations: 108.4 kB / 488.2 MB, free: 58.74 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001371/1.13, allocations: 44.31 kB / 488.3 MB, free: 58.73 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002074/1.132, allocations: 0.9805 MB / 489.2 MB, free: 58.34 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.132, allocations: 7.844 kB / 489.3 MB, free: 58.34 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002852/1.135, allocations: 0.5419 MB / 489.8 MB, free: 58.28 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.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 (100): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 23,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009863/1.145, allocations: 5.01 MB / 494.8 MB, free: 55.46 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006454/1.151, allocations: 2.419 MB / 497.2 MB, free: 54.06 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/1.151, allocations: 0 / 497.2 MB, free: 54.06 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004205/1.155, allocations: 1.546 MB / 498.8 MB, free: 52.66 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003373/1.159, allocations: 430.9 kB / 499.2 MB, free: 52.33 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03675/1.195, allocations: 22.66 MB / 0.5096 GB, free: 30.45 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002098/1.198, allocations: 1.892 MB / 0.5115 GB, free: 28.92 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001813/1.199, allocations: 0.8712 MB / 0.5123 GB, free: 28.12 MB / 346.7 MB Notification: Performance of SimCode: time 1.112e-06/1.2, allocations: 0 / 0.5123 GB, free: 28.12 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.795/4.994, allocations: 71.54 MB / 0.5822 GB, free: 89.34 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_Inverter_res.mat does not exist to compare? outputFormat=mat