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.AsynchronousInductionMachines.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.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.748/1.748, allocations: 171.2 MB / 186.1 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003787/0.0003787, allocations: 8 kB / 233.4 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08336/0.08378, allocations: 38.78 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3795/0.4634, allocations: 94.21 MB / 366.3 MB, free: 11.34 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003319/0.4638, allocations: 92.95 kB / 366.4 MB, free: 11.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2076/0.6713, allocations: 44.36 MB / 410.8 MB, free: 4.469 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.564e-06/0.6714, allocations: 4 kB / 410.8 MB, free: 4.465 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002356/0.6716, allocations: 55.92 kB / 410.9 MB, free: 4.41 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 519 * Number of variables: 519 Notification: Performance of Generate backend data structure: time 0.009098/0.6808, allocations: 2.421 MB / 413.3 MB, free: 1.93 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.358e-05/0.6808, allocations: 8.031 kB / 413.3 MB, free: 1.922 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001204/0.682, allocations: 303.1 kB / 413.6 MB, free: 1.617 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001226/0.6833, allocations: 292.8 kB / 413.9 MB, free: 1.328 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005051/0.6884, allocations: 1.5 MB / 415.4 MB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002174/0.6886, allocations: 155.9 kB / 415.5 MB, free: 15.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000678/0.6893, allocations: 203.9 kB / 415.7 MB, free: 15.42 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008267/0.6976, allocations: 2.678 MB / 418.4 MB, free: 12.63 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.487e-05/0.6977, allocations: 4 kB / 418.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000353/0.6981, allocations: 87.98 kB / 418.5 MB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000152/0.6983, allocations: 91.83 kB / 418.6 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007489/0.7058, allocations: 2.209 MB / 420.8 MB, free: 10.24 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02352/0.7294, allocations: 8.395 MB / 429.2 MB, free: 1.617 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2866/1.016, allocations: 1.812 MB / 431 MB, free: 83.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005195/1.017, allocations: 134.5 kB / 431.1 MB, free: 83.4 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.984e-05/1.017, allocations: 45.97 kB / 431.2 MB, free: 83.36 MB / 346.7 MB Notification: Performance of pre-optimization done (n=107): time 3.977e-06/1.017, allocations: 0 / 431.2 MB, free: 83.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=123): time 0.02396/1.041, allocations: 6.425 MB / 437.6 MB, free: 82.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/1.041, allocations: 63.81 kB / 437.7 MB, free: 82.37 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003472/1.044, allocations: 1.299 MB / 439 MB, free: 82.22 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003313/1.045, allocations: 51.64 kB / 439 MB, free: 82.19 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001002/1.046, allocations: 0.9654 MB / 440 MB, free: 81.87 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006461/1.046, allocations: 420.1 kB / 440.4 MB, free: 81.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001449/1.046, allocations: 27.66 kB / 440.4 MB, free: 81.66 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000135/1.047, allocations: 363.7 kB / 440.8 MB, free: 81.36 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002073/1.049, allocations: 0.7425 MB / 441.5 MB, free: 81.35 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002323/1.051, allocations: 1.048 MB / 442.6 MB, free: 81.02 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002448/1.054, allocations: 0.8949 MB / 443.4 MB, free: 81.01 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.778e-05/1.054, allocations: 2.688 kB / 443.5 MB, free: 81.01 MB / 346.7 MB Notification: Performance of matching and sorting (n=172) (initialization): time 0.006901/1.061, allocations: 2.368 MB / 445.8 MB, free: 80.82 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.161e-05/1.061, allocations: 7.812 kB / 445.8 MB, free: 80.82 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.196e-05/1.061, allocations: 10.56 kB / 445.8 MB, free: 80.82 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001498/1.062, allocations: 417.3 kB / 446.2 MB, free: 80.79 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002502/1.065, allocations: 343.5 kB / 446.6 MB, free: 80.79 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006437/1.071, allocations: 4.735 MB / 451.3 MB, free: 78.2 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002106/1.073, allocations: 98.88 kB / 451.4 MB, free: 78.19 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002039/1.074, allocations: 51.33 kB / 451.5 MB, free: 78.19 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (156): * Single equations (assignments): 152 * 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%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001823/1.075, allocations: 0.7055 MB / 452.2 MB, free: 78.07 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005752/1.076, allocations: 163.7 kB / 452.3 MB, free: 77.99 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005955/1.082, allocations: 2.188 MB / 454.5 MB, free: 77.87 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.771e-05/1.082, allocations: 10.88 kB / 454.5 MB, free: 77.87 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/1.082, allocations: 7.922 kB / 454.5 MB, free: 77.87 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.481e-05/1.082, allocations: 6.562 kB / 454.5 MB, free: 77.87 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01205/1.094, allocations: 4.573 MB / 459.1 MB, free: 76.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/1.094, allocations: 6.188 kB / 459.1 MB, free: 76.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001907/1.096, allocations: 232.7 kB / 459.3 MB, free: 76.51 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002051/1.098, allocations: 468.4 kB / 459.8 MB, free: 76.38 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002204/1.098, allocations: 34.41 kB / 459.8 MB, free: 76.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008103/1.107, allocations: 6.307 MB / 466.1 MB, free: 71.48 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/1.107, allocations: 0 / 466.1 MB, free: 71.48 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007852/1.114, allocations: 3.395 MB / 469.5 MB, free: 69.94 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001405/1.116, allocations: 407 kB / 469.9 MB, free: 69.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004306/1.116, allocations: 33.95 kB / 470 MB, free: 69.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001488/1.118, allocations: 78.03 kB / 470 MB, free: 69.64 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003344/1.118, allocations: 115 kB / 470.2 MB, free: 69.62 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001215/1.118, allocations: 37.33 kB / 470.2 MB, free: 69.62 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002034/1.12, allocations: 0.9996 MB / 471.2 MB, free: 69.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.12, allocations: 0 / 471.2 MB, free: 69.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00252/1.123, allocations: 495.5 kB / 471.7 MB, free: 69.18 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 7 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.w,quadraticLoadTorque.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 (107): * Single equations (assignments): 103 * 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: 3 * 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: 3 {(2,100.0%) 12,(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.008587/1.132, allocations: 4.741 MB / 476.4 MB, free: 66.52 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005406/1.137, allocations: 2.306 MB / 478.7 MB, free: 65.5 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.647e-06/1.137, allocations: 0 / 478.7 MB, free: 65.5 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003555/1.141, allocations: 1.524 MB / 480.3 MB, free: 64.72 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003199/1.144, allocations: 414.1 kB / 480.7 MB, free: 64.61 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03307/1.177, allocations: 19.21 MB / 499.9 MB, free: 50.89 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001827/1.179, allocations: 1.865 MB / 0.49 GB, free: 49.38 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.002036/1.181, allocations: 394.3 kB / 0.4903 GB, free: 49.11 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00164/1.183, allocations: 0.7796 MB / 0.4911 GB, free: 48.39 MB / 346.7 MB Notification: Performance of SimCode: time 1.092e-06/1.183, allocations: 0 / 0.4911 GB, free: 48.39 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1047/1.287, allocations: 42.42 MB / 0.5325 GB, free: 11.75 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002352/1.288, allocations: 226.6 kB / 0.5328 GB, free: 11.51 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.758/5.046, allocations: 4.062 kB / 0.5328 GB, free: 11.5 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_DOL_res.mat does not exist to compare? outputFormat=mat