Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.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.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_1_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.675/1.675, allocations: 171.2 MB / 186.1 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000354/0.0003541, allocations: 8 kB / 233.4 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09707/0.09747, allocations: 38.76 MB / 272.1 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.447/0.5446, allocations: 109.7 MB / 381.8 MB, free: 12.15 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003054/0.5449, allocations: 85.83 kB / 381.9 MB, free: 12.11 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6536/1.199, allocations: 112.9 MB / 494.9 MB, free: 66.85 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.875e-06/1.199, allocations: 0 / 494.9 MB, free: 66.85 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005963/1.199, allocations: 130.5 kB / 495 MB, free: 66.83 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: 1305 * Number of variables: 1305 Notification: Performance of Generate backend data structure: time 0.02162/1.221, allocations: 5.313 MB / 0.4886 GB, free: 61.67 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.158e-05/1.221, allocations: 12.03 kB / 0.4886 GB, free: 61.66 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003005/1.224, allocations: 0.6944 MB / 0.4893 GB, free: 60.96 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004866/1.229, allocations: 0.7724 MB / 0.49 GB, free: 60.18 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01139/1.24, allocations: 3.63 MB / 0.4936 GB, free: 56.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004837/1.241, allocations: 377.8 kB / 0.4939 GB, free: 56.16 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002148/1.243, allocations: 0.4885 MB / 0.4944 GB, free: 55.67 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02106/1.264, allocations: 6.601 MB / 0.5008 GB, free: 48.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002472/1.264, allocations: 15.83 kB / 0.5009 GB, free: 48.85 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001375/1.266, allocations: 213.4 kB / 0.5011 GB, free: 48.64 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002352/1.266, allocations: 209.9 kB / 0.5013 GB, free: 48.43 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01711/1.283, allocations: 5.227 MB / 0.5064 GB, free: 43.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05353/1.337, allocations: 20.47 MB / 0.5264 GB, free: 22.45 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007904/1.345, allocations: 4.683 MB / 0.5309 GB, free: 17.44 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006254/1.345, allocations: 153.7 kB / 0.5311 GB, free: 17.28 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.779e-05/1.345, allocations: 60.56 kB / 0.5311 GB, free: 17.21 MB / 346.7 MB Notification: Performance of pre-optimization done (n=235): time 5.901e-06/1.345, allocations: 0 / 0.5311 GB, free: 17.21 MB / 346.7 MB Notification: Performance of matching and sorting (n=276): time 0.04805/1.394, allocations: 13.48 MB / 0.5443 GB, free: 3.457 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/1.394, allocations: 85.52 kB / 0.5444 GB, free: 3.359 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005774/1.399, allocations: 2.524 MB / 0.5468 GB, free: 0.8281 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000631/1.4, allocations: 73.7 kB / 0.5469 GB, free: 0.75 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.3186/1.719, allocations: 2.204 MB / 0.5491 GB, free: 60.7 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001483/1.72, allocations: 0.9322 MB / 0.55 GB, free: 60.17 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003229/1.721, allocations: 61.41 kB / 0.55 GB, free: 60.17 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002302/1.721, allocations: 433.9 kB / 0.5505 GB, free: 59.86 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004418/1.725, allocations: 1.505 MB / 0.5519 GB, free: 59.85 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005485/1.731, allocations: 2.192 MB / 0.5541 GB, free: 59.11 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005195/1.736, allocations: 1.87 MB / 0.5559 GB, free: 59.06 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.353e-05/1.736, allocations: 6.281 kB / 0.5559 GB, free: 59.06 MB / 346.7 MB Notification: Performance of matching and sorting (n=389) (initialization): time 0.01387/1.75, allocations: 5.085 MB / 0.5609 GB, free: 58.6 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.096e-05/1.75, allocations: 12.75 kB / 0.5609 GB, free: 58.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-05/1.75, allocations: 20.12 kB / 0.5609 GB, free: 58.6 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0034/1.754, allocations: 0.9287 MB / 0.5618 GB, free: 58.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004944/1.759, allocations: 0.672 MB / 0.5625 GB, free: 58.54 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01842/1.777, allocations: 13.03 MB / 0.5752 GB, free: 51.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004113/1.781, allocations: 153.8 kB / 0.5753 GB, free: 51.96 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006891/1.782, allocations: 120.5 kB / 0.5754 GB, free: 51.96 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (333): * Single equations (assignments): 325 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 5 {(2,100.0%) 12,(1,100.0%) 1,(4,100.0%) 27,(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004459/1.786, allocations: 1.629 MB / 0.577 GB, free: 51.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001026/1.787, allocations: 328.7 kB / 0.5773 GB, free: 51.66 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01407/1.801, allocations: 4.881 MB / 0.5821 GB, free: 51.05 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.42e-05/1.802, allocations: 24.53 kB / 0.5821 GB, free: 51.05 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.047e-05/1.802, allocations: 15.77 kB / 0.5822 GB, free: 51.05 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-05/1.802, allocations: 19.2 kB / 0.5822 GB, free: 51.05 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02777/1.829, allocations: 10.74 MB / 0.5927 GB, free: 46.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.166e-05/1.83, allocations: 11.27 kB / 0.5927 GB, free: 46.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0037/1.833, allocations: 428 kB / 0.5931 GB, free: 46.35 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004447/1.838, allocations: 1.092 MB / 0.5941 GB, free: 46 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005541/1.838, allocations: 67.52 kB / 0.5942 GB, free: 45.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02394/1.862, allocations: 18.47 MB / 0.6122 GB, free: 31.52 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/1.862, allocations: 6.281 kB / 0.6123 GB, free: 31.52 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01673/1.879, allocations: 7.326 MB / 0.6194 GB, free: 27.76 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002719/1.882, allocations: 0.7434 MB / 0.6201 GB, free: 27.29 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001164/1.883, allocations: 64.05 kB / 0.6202 GB, free: 27.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003466/1.887, allocations: 140.8 kB / 0.6203 GB, free: 27.22 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000956/1.888, allocations: 216.2 kB / 0.6205 GB, free: 27.19 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003445/1.888, allocations: 80.88 kB / 0.6206 GB, free: 27.17 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004867/1.893, allocations: 1.94 MB / 0.6225 GB, free: 26.43 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.12e-07/1.893, allocations: 0 / 0.6225 GB, free: 26.43 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.006177/1.899, allocations: 1.039 MB / 0.6235 GB, free: 26.33 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.zeroInductor.i0,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.stator.strayReluctance.Phi.re,aimcM.stator.strayReluctance.Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (206): * Single equations (assignments): 197 * 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: 8 * 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: 8 {(4,100.0%) 26,(2,100.0%) 12,(1,100.0%) 8,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01972/1.919, allocations: 9.176 MB / 0.6325 GB, free: 18.79 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01228/1.931, allocations: 4.866 MB / 0.6372 GB, free: 14.3 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-05/1.931, allocations: 0.6562 kB / 0.6372 GB, free: 14.3 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009499/1.941, allocations: 3.391 MB / 0.6405 GB, free: 11.16 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006788/1.948, allocations: 0.8409 MB / 0.6414 GB, free: 10.51 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3793/2.327, allocations: 44.51 MB / 0.6848 GB, free: 86.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01135/2.338, allocations: 3.56 MB / 0.6883 GB, free: 86.04 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.006763/2.345, allocations: 0.7299 MB / 0.689 GB, free: 86.01 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007051/2.352, allocations: 1.903 MB / 0.6909 GB, free: 86.01 MB / 378.7 MB Notification: Performance of SimCode: time 2.304e-06/2.352, allocations: 0 / 0.6909 GB, free: 86.01 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2156/2.568, allocations: 90.03 MB / 0.7788 GB, free: 37.54 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001813/2.568, allocations: 218 kB / 0.779 GB, free: 37.29 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.735/8.303, allocations: 0 / 0.779 GB, free: 37.29 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat does not exist to compare? outputFormat=mat