Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.555/1.555, allocations: 171.1 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003539/0.0003539, allocations: 16 kB / 233.3 MB, free: 2.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08319/0.08358, allocations: 38.76 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.408/0.4917, allocations: 109.7 MB / 381.8 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.492, allocations: 93.89 kB / 381.9 MB, free: 12.36 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6731/1.165, allocations: 112.9 MB / 494.8 MB, free: 66.83 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.336e-06/1.165, allocations: 0 / 494.8 MB, free: 66.83 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005358/1.166, allocations: 133.2 kB / 495 MB, free: 66.8 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.02135/1.187, allocations: 5.312 MB / 0.4886 GB, free: 61.98 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.293e-05/1.187, allocations: 12.02 kB / 0.4886 GB, free: 61.97 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003152/1.19, allocations: 0.6897 MB / 0.4892 GB, free: 61.28 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005352/1.196, allocations: 0.7724 MB / 0.49 GB, free: 60.5 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01143/1.207, allocations: 3.631 MB / 0.4935 GB, free: 56.84 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004119/1.208, allocations: 374 kB / 0.4939 GB, free: 56.48 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001984/1.21, allocations: 0.4918 MB / 0.4944 GB, free: 55.99 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02082/1.23, allocations: 6.59 MB / 0.5008 GB, free: 49.2 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002555/1.231, allocations: 15.84 kB / 0.5008 GB, free: 49.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001519/1.232, allocations: 215.2 kB / 0.501 GB, free: 48.97 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002464/1.233, allocations: 217.9 kB / 0.5012 GB, free: 48.76 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01668/1.249, allocations: 5.227 MB / 0.5064 GB, free: 43.52 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05111/1.3, allocations: 20.47 MB / 0.5263 GB, free: 22.77 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007535/1.308, allocations: 4.679 MB / 0.5309 GB, free: 17.76 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006347/1.309, allocations: 154.8 kB / 0.5311 GB, free: 17.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.212e-05/1.309, allocations: 60.56 kB / 0.5311 GB, free: 17.53 MB / 346.7 MB Notification: Performance of pre-optimization done (n=235): time 5.58e-06/1.309, allocations: 0 / 0.5311 GB, free: 17.53 MB / 346.7 MB Notification: Performance of matching and sorting (n=276): time 0.04791/1.357, allocations: 13.46 MB / 0.5443 GB, free: 3.797 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.976e-05/1.357, allocations: 81.58 kB / 0.5443 GB, free: 3.703 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006245/1.363, allocations: 2.528 MB / 0.5468 GB, free: 1.168 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006234/1.364, allocations: 81.64 kB / 0.5469 GB, free: 1.082 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002054/1.366, allocations: 2.05 MB / 0.5489 GB, free: 15.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001634/1.367, allocations: 0.9417 MB / 0.5498 GB, free: 14.08 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003481/1.368, allocations: 60 kB / 0.5499 GB, free: 14.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003266/1.368, allocations: 441 kB / 0.5503 GB, free: 13.59 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004569/1.373, allocations: 1.505 MB / 0.5518 GB, free: 12.08 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005614/1.378, allocations: 2.19 MB / 0.5539 GB, free: 9.605 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005656/1.384, allocations: 1.872 MB / 0.5557 GB, free: 7.715 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-05/1.384, allocations: 4 kB / 0.5557 GB, free: 7.711 MB / 362.7 MB Notification: Performance of matching and sorting (n=389) (initialization): time 0.01528/1.399, allocations: 4.889 MB / 0.5605 GB, free: 2.734 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.57e-05/1.4, allocations: 12 kB / 0.5605 GB, free: 2.723 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.56e-05/1.4, allocations: 20 kB / 0.5605 GB, free: 2.703 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003885/1.403, allocations: 0.9285 MB / 0.5614 GB, free: 1.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005414/1.409, allocations: 0.6747 MB / 0.5621 GB, free: 1.074 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2725/1.682, allocations: 13.01 MB / 0.5748 GB, free: 68.01 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003927/1.685, allocations: 155.8 kB / 0.575 GB, free: 68.01 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007379/1.686, allocations: 126.5 kB / 0.5751 GB, free: 68 MB / 362.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.00501/1.691, allocations: 1.615 MB / 0.5767 GB, free: 67.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001083/1.692, allocations: 332.1 kB / 0.577 GB, free: 67.89 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01489/1.707, allocations: 4.881 MB / 0.5817 GB, free: 67.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.179e-05/1.707, allocations: 28.73 kB / 0.5818 GB, free: 67.33 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-05/1.707, allocations: 11.75 kB / 0.5818 GB, free: 67.33 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.648e-05/1.708, allocations: 11.86 kB / 0.5818 GB, free: 67.33 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02928/1.737, allocations: 10.75 MB / 0.5923 GB, free: 66.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.463e-05/1.737, allocations: 11.73 kB / 0.5923 GB, free: 66.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003598/1.741, allocations: 435.7 kB / 0.5927 GB, free: 66.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004499/1.745, allocations: 1.085 MB / 0.5938 GB, free: 66.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005516/1.746, allocations: 71.36 kB / 0.5938 GB, free: 66.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0239/1.77, allocations: 18.46 MB / 0.6119 GB, free: 52.02 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.734e-06/1.77, allocations: 12.16 kB / 0.6119 GB, free: 52.02 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01654/1.786, allocations: 7.332 MB / 0.619 GB, free: 48.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002526/1.789, allocations: 0.7418 MB / 0.6198 GB, free: 47.97 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001048/1.79, allocations: 61.98 kB / 0.6198 GB, free: 47.93 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003034/1.793, allocations: 146.9 kB / 0.62 GB, free: 47.89 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009665/1.794, allocations: 214.5 kB / 0.6202 GB, free: 47.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003765/1.794, allocations: 77.64 kB / 0.6202 GB, free: 47.84 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005125/1.799, allocations: 1.94 MB / 0.6221 GB, free: 47.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.12e-07/1.799, allocations: 0 / 0.6221 GB, free: 47.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005781/1.805, allocations: 1.042 MB / 0.6232 GB, free: 47 MB / 362.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.01884/1.824, allocations: 9.169 MB / 0.6321 GB, free: 41.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01182/1.836, allocations: 4.87 MB / 0.6369 GB, free: 39.46 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.185e-05/1.836, allocations: 3.25 kB / 0.6369 GB, free: 39.46 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008385/1.844, allocations: 3.389 MB / 0.6402 GB, free: 37.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006839/1.851, allocations: 0.8469 MB / 0.641 GB, free: 37.37 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09706/1.948, allocations: 45.14 MB / 0.6851 GB, free: 13.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006938/1.955, allocations: 3.494 MB / 0.6885 GB, free: 11.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005325/1.961, allocations: 1.914 MB / 0.6904 GB, free: 9.48 MB / 378.7 MB Notification: Performance of SimCode: time 1.303e-06/1.961, allocations: 0 / 0.6904 GB, free: 9.48 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.387/7.348, allocations: 294.9 MB / 0.9783 GB, free: 5.258 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat does not exist to compare? outputFormat=mat