Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.926/1.926, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003447/0.0003447, allocations: 8 kB / 264 MB, free: 13.46 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09268/0.09306, allocations: 44.51 MB / 308.5 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4673/0.5604, allocations: 124.3 MB / 432.9 MB, free: 15.21 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.5607, allocations: 86.45 kB / 433 MB, free: 15.16 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.855/1.416, allocations: 150.4 MB / 0.5697 GB, free: 68.53 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.437e-06/1.416, allocations: 0 / 0.5697 GB, free: 68.53 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.001037/1.417, allocations: 181.2 kB / 0.5699 GB, free: 68.51 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.04102/1.458, allocations: 7.267 MB / 0.577 GB, free: 65.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.842e-05/1.458, allocations: 7.406 kB / 0.577 GB, free: 65.73 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005224/1.463, allocations: 0.9394 MB / 0.5779 GB, free: 65.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0133/1.477, allocations: 1.24 MB / 0.5791 GB, free: 65.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02489/1.502, allocations: 6.276 MB / 0.5852 GB, free: 64.25 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006677/1.502, allocations: 0.4964 MB / 0.5857 GB, free: 64.23 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003003/1.505, allocations: 0.6657 MB / 0.5864 GB, free: 64.23 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03028/1.536, allocations: 9.336 MB / 0.5955 GB, free: 63.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003962/1.536, allocations: 11.59 kB / 0.5955 GB, free: 63.23 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002392/1.538, allocations: 290.3 kB / 0.5958 GB, free: 63.01 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003428/1.539, allocations: 302.8 kB / 0.5961 GB, free: 62.98 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02565/1.565, allocations: 7.673 MB / 0.6036 GB, free: 59.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08063/1.645, allocations: 29.49 MB / 0.6324 GB, free: 41.29 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02181/1.667, allocations: 11.87 MB / 0.644 GB, free: 29.13 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02731/1.694, allocations: 7.004 MB / 0.6508 GB, free: 23.4 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.114e-05/1.695, allocations: 69.11 kB / 0.6509 GB, free: 23.32 MB / 410.7 MB Notification: Performance of pre-optimization done (n=323): time 8.957e-06/1.695, allocations: 0 / 0.6509 GB, free: 23.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=342): time 0.07546/1.77, allocations: 16.32 MB / 0.6668 GB, free: 7.754 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.947e-05/1.77, allocations: 86.09 kB / 0.6669 GB, free: 7.656 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01281/1.783, allocations: 3.479 MB / 0.6703 GB, free: 4.16 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001109/1.784, allocations: 85.7 kB / 0.6704 GB, free: 4.07 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003752/1.788, allocations: 2.8 MB / 0.6731 GB, free: 1.254 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002531/1.791, allocations: 1.155 MB / 0.6742 GB, free: 112 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005623/1.791, allocations: 72 kB / 0.6743 GB, free: 40 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.316/2.107, allocations: 466.7 kB / 0.6747 GB, free: 64.46 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005591/2.113, allocations: 1.934 MB / 0.6766 GB, free: 64.45 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007145/2.12, allocations: 2.822 MB / 0.6794 GB, free: 63.49 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006941/2.127, allocations: 2.358 MB / 0.6817 GB, free: 63.45 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.883e-05/2.127, allocations: 7.719 kB / 0.6817 GB, free: 63.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01945/2.147, allocations: 6.222 MB / 0.6878 GB, free: 63.01 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.362e-05/2.147, allocations: 16.06 kB / 0.6878 GB, free: 63.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.564e-05/2.147, allocations: 26.09 kB / 0.6878 GB, free: 63.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005196/2.152, allocations: 1.256 MB / 0.689 GB, free: 62.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006601/2.159, allocations: 0.8445 MB / 0.6899 GB, free: 62.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02521/2.184, allocations: 21.12 MB / 0.7105 GB, free: 48.96 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006534/2.19, allocations: 210.5 kB / 0.7107 GB, free: 48.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0012/2.192, allocations: 149.6 kB / 0.7108 GB, free: 48.96 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 117 * Number of states: 0 () * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (429): * Single equations (assignments): 415 * 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: 11 * 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: 11 {(2,100.0%) 14,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.008704/2.2, allocations: 2.178 MB / 0.713 GB, free: 48.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002008/2.202, allocations: 449.6 kB / 0.7134 GB, free: 48.85 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02522/2.228, allocations: 6.303 MB / 0.7195 GB, free: 48.11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.532e-05/2.228, allocations: 32.28 kB / 0.7196 GB, free: 48.11 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001156/2.228, allocations: 16.78 kB / 0.7196 GB, free: 48.11 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001154/2.228, allocations: 18.8 kB / 0.7196 GB, free: 48.11 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04906/2.277, allocations: 12.76 MB / 0.7321 GB, free: 44.59 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.881e-05/2.277, allocations: 3.219 kB / 0.7321 GB, free: 44.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004672/2.282, allocations: 496.3 kB / 0.7325 GB, free: 44.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008655/2.291, allocations: 1.62 MB / 0.7341 GB, free: 44.05 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001007/2.292, allocations: 77.75 kB / 0.7342 GB, free: 44 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08346/2.375, allocations: 30.73 MB / 0.7642 GB, free: 18.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.823e-06/2.375, allocations: 9.125 kB / 0.7642 GB, free: 18.75 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02336/2.399, allocations: 9.372 MB / 0.7734 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003489/2.402, allocations: 0.9449 MB / 0.7743 GB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00168/2.404, allocations: 75.14 kB / 0.7744 GB, free: 13.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004956/2.409, allocations: 210 kB / 0.7746 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001483/2.41, allocations: 296.7 kB / 0.7749 GB, free: 13.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004986/2.411, allocations: 90.72 kB / 0.7749 GB, free: 13.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006896/2.418, allocations: 2.669 MB / 0.7775 GB, free: 12.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.71e-07/2.418, allocations: 0 / 0.7775 GB, free: 12.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00803/2.426, allocations: 1.393 MB / 0.7789 GB, free: 12.53 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.stator.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,loadInertiaM.w,loadInertiaE.w,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (249): * Single equations (assignments): 232 * 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: 16 * 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: 16 {(2,100.0%) 14,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02492/2.451, allocations: 11 MB / 0.7897 GB, free: 6.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01544/2.466, allocations: 6.508 MB / 0.796 GB, free: 17.49 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.598e-06/2.466, allocations: 4.984 kB / 0.796 GB, free: 17.48 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0118/2.478, allocations: 4.91 MB / 0.8008 GB, free: 12.86 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01029/2.489, allocations: 1.249 MB / 0.802 GB, free: 11.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4354/2.924, allocations: 60.34 MB / 0.8609 GB, free: 67.91 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008287/2.932, allocations: 4.525 MB / 0.8654 GB, free: 67.06 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006422/2.939, allocations: 2.701 MB / 0.868 GB, free: 67.06 MB / 442.7 MB Notification: Performance of SimCode: time 2.845e-06/2.939, allocations: 0 / 0.868 GB, free: 67.06 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 7.734/10.67, allocations: 0.6214 GB / 1.489 GB, free: 102.6 MB / 474.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat