Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.972/1.972, allocations: 194.8 MB / 211.1 MB, free: 8.754 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003706/0.0003701, allocations: 11.98 kB / 264.1 MB, free: 3.656 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2901, allocations: 44.5 MB / 308.6 MB, free: 12.7 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5015/0.7916, allocations: 124.3 MB / 432.9 MB, free: 52.42 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002932/0.792, allocations: 92.39 kB / 433 MB, free: 52.42 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9586/1.751, allocations: 150.4 MB / 0.5697 GB, free: 40.96 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.005e-06/1.751, allocations: 0 / 0.5697 GB, free: 40.96 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000867/1.752, allocations: 181 kB / 0.5699 GB, free: 40.95 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.032/1.784, allocations: 7.265 MB / 0.577 GB, free: 38.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/1.784, allocations: 14.5 kB / 0.577 GB, free: 38.73 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004454/1.788, allocations: 0.9353 MB / 0.5779 GB, free: 38.65 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009268/1.797, allocations: 1.243 MB / 0.5791 GB, free: 38.24 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02403/1.822, allocations: 6.27 MB / 0.5853 GB, free: 37.32 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007676/1.822, allocations: 0.4989 MB / 0.5858 GB, free: 37.31 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003075/1.825, allocations: 0.6642 MB / 0.5864 GB, free: 37.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0319/1.857, allocations: 9.344 MB / 0.5955 GB, free: 36.36 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004839/1.858, allocations: 12.41 kB / 0.5955 GB, free: 36.36 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002687/1.861, allocations: 295.2 kB / 0.5958 GB, free: 36.36 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003738/1.861, allocations: 288.9 kB / 0.5961 GB, free: 36.34 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02498/1.886, allocations: 7.681 MB / 0.6036 GB, free: 36.28 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07734/1.963, allocations: 29.49 MB / 0.6324 GB, free: 29.96 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0172/1.981, allocations: 11.87 MB / 0.644 GB, free: 20.47 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02271/2.003, allocations: 7.003 MB / 0.6508 GB, free: 33.07 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.567e-05/2.004, allocations: 67.67 kB / 0.6509 GB, free: 33 MB / 426.7 MB Notification: Performance of pre-optimization done (n=323): time 7.144e-06/2.004, allocations: 0 / 0.6509 GB, free: 33 MB / 426.7 MB Notification: Performance of matching and sorting (n=342): time 0.05431/2.058, allocations: 16.33 MB / 0.6668 GB, free: 25.11 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.189e-05/2.058, allocations: 87.72 kB / 0.6669 GB, free: 25.05 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008348/2.066, allocations: 3.476 MB / 0.6703 GB, free: 23.77 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007834/2.067, allocations: 92.58 kB / 0.6704 GB, free: 23.69 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002767/2.07, allocations: 3.038 MB / 0.6734 GB, free: 21.38 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001767/2.072, allocations: 1.149 MB / 0.6745 GB, free: 20.48 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004588/2.072, allocations: 77.66 kB / 0.6746 GB, free: 20.43 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003836/2.073, allocations: 469.5 kB / 0.675 GB, free: 20.05 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0056/2.078, allocations: 1.933 MB / 0.6769 GB, free: 19.34 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006485/2.085, allocations: 2.819 MB / 0.6797 GB, free: 17.56 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00702/2.092, allocations: 2.363 MB / 0.682 GB, free: 16.54 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.347e-05/2.092, allocations: 7.469 kB / 0.682 GB, free: 16.54 MB / 426.7 MB Notification: Performance of matching and sorting (n=492) (initialization): time 0.01976/2.112, allocations: 6.499 MB / 0.6883 GB, free: 13.92 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.508e-05/2.112, allocations: 18.55 kB / 0.6883 GB, free: 13.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.213e-05/2.112, allocations: 24.75 kB / 0.6884 GB, free: 13.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004847/2.117, allocations: 1.264 MB / 0.6896 GB, free: 13.47 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006714/2.124, allocations: 0.8445 MB / 0.6904 GB, free: 13.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03092/2.155, allocations: 21.11 MB / 0.711 GB, free: 9.637 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005617/2.16, allocations: 201.2 kB / 0.7112 GB, free: 9.477 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001087/2.161, allocations: 155.7 kB / 0.7114 GB, free: 9.328 MB / 442.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.007527/2.169, allocations: 2.179 MB / 0.7135 GB, free: 7.48 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001742/2.171, allocations: 454.2 kB / 0.7139 GB, free: 7.035 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02174/2.193, allocations: 6.303 MB / 0.7201 GB, free: 1.598 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.775e-05/2.193, allocations: 32 kB / 0.7201 GB, free: 1.566 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.223e-05/2.193, allocations: 16 kB / 0.7201 GB, free: 1.551 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001035/2.193, allocations: 18.22 kB / 0.7202 GB, free: 1.551 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3686/2.561, allocations: 13.08 MB / 0.7329 GB, free: 63.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.85e-05/2.562, allocations: 3.594 kB / 0.7329 GB, free: 63.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004561/2.566, allocations: 0.4926 MB / 0.7334 GB, free: 63.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006675/2.573, allocations: 1.62 MB / 0.735 GB, free: 63.23 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008648/2.574, allocations: 78.22 kB / 0.7351 GB, free: 63.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03748/2.611, allocations: 30.73 MB / 0.7651 GB, free: 42.87 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.105e-06/2.611, allocations: 5.844 kB / 0.7651 GB, free: 42.87 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02415/2.635, allocations: 9.382 MB / 0.7742 GB, free: 41.46 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004009/2.64, allocations: 0.9411 MB / 0.7752 GB, free: 41.37 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001853/2.641, allocations: 69.31 kB / 0.7752 GB, free: 41.37 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004976/2.646, allocations: 206.4 kB / 0.7754 GB, free: 41.37 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00146/2.648, allocations: 291.5 kB / 0.7757 GB, free: 41.36 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005746/2.649, allocations: 94.88 kB / 0.7758 GB, free: 41.36 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007231/2.656, allocations: 2.667 MB / 0.7784 GB, free: 41.18 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.01e-07/2.656, allocations: 0 / 0.7784 GB, free: 41.18 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008003/2.664, allocations: 1.393 MB / 0.7798 GB, free: 41.18 MB / 442.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.02664/2.691, allocations: 11.01 MB / 0.7905 GB, free: 38.68 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01594/2.707, allocations: 6.515 MB / 0.7969 GB, free: 37.05 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.397e-05/2.707, allocations: 3.375 kB / 0.7969 GB, free: 37.05 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0115/2.718, allocations: 4.911 MB / 0.8017 GB, free: 35.08 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009852/2.728, allocations: 1.252 MB / 0.8029 GB, free: 35.06 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1165/2.845, allocations: 60.51 MB / 0.862 GB, free: 10.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009846/2.854, allocations: 4.613 MB / 0.8665 GB, free: 8.613 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.006821/2.861, allocations: 1.059 MB / 0.8675 GB, free: 8.504 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007597/2.869, allocations: 2.67 MB / 0.8701 GB, free: 6.273 MB / 458.7 MB Notification: Performance of SimCode: time 1.854e-06/2.869, allocations: 0 / 0.8701 GB, free: 6.273 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6265/3.496, allocations: 123.2 MB / 0.9905 GB, free: 48.38 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002527/3.496, allocations: 220.6 kB / 0.9907 GB, free: 48.14 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.609/11.1, allocations: 0 / 0.9907 GB, free: 48.14 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_res.mat does not exist to compare? outputFormat=mat