Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.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.Transformers.AIMC_Transformer,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.593/1.593, allocations: 171.1 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000486/0.0004861, allocations: 8 kB / 233.3 MB, free: 2.91 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09701/0.09753, allocations: 38.76 MB / 272.1 MB, free: 12.07 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3948/0.4924, allocations: 102.3 MB / 374.4 MB, free: 3.859 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003068/0.4927, allocations: 91.83 kB / 374.5 MB, free: 3.809 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6138/1.107, allocations: 94.27 MB / 468.7 MB, free: 72.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.414e-06/1.107, allocations: 0 / 468.7 MB, free: 72.29 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003914/1.107, allocations: 105.1 kB / 468.9 MB, free: 72.27 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: 929 * Number of variables: 929 Notification: Performance of Generate backend data structure: time 0.01407/1.121, allocations: 3.94 MB / 472.8 MB, free: 70.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.256e-05/1.121, allocations: 8.938 kB / 472.8 MB, free: 70.59 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002123/1.123, allocations: 0.5027 MB / 473.3 MB, free: 70.54 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002725/1.126, allocations: 0.5056 MB / 473.8 MB, free: 70.31 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007577/1.134, allocations: 2.513 MB / 476.3 MB, free: 69.67 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003226/1.134, allocations: 267.4 kB / 476.6 MB, free: 69.66 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001434/1.135, allocations: 355.1 kB / 476.9 MB, free: 69.65 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01373/1.149, allocations: 4.915 MB / 481.8 MB, free: 67.57 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001391/1.149, allocations: 7.719 kB / 481.9 MB, free: 67.57 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005899/1.15, allocations: 151.6 kB / 482 MB, free: 67.46 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002144/1.15, allocations: 174.9 kB / 482.2 MB, free: 67.44 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01233/1.163, allocations: 4.036 MB / 486.2 MB, free: 65.89 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03679/1.199, allocations: 14.9 MB / 0.4894 GB, free: 58.11 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006496/1.206, allocations: 4.223 MB / 0.4935 GB, free: 53.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000502/1.206, allocations: 144.4 kB / 0.4936 GB, free: 53.83 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.921e-05/1.207, allocations: 56.56 kB / 0.4937 GB, free: 53.77 MB / 346.7 MB Notification: Performance of pre-optimization done (n=201): time 4.599e-06/1.207, allocations: 0 / 0.4937 GB, free: 53.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=221): time 0.04039/1.247, allocations: 10.17 MB / 0.5036 GB, free: 44.2 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.177e-05/1.247, allocations: 77.41 kB / 0.5037 GB, free: 44.11 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00734/1.254, allocations: 2.186 MB / 0.5058 GB, free: 41.91 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006629/1.255, allocations: 61.7 kB / 0.5059 GB, free: 41.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001622/1.257, allocations: 1.471 MB / 0.5073 GB, free: 40.36 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001367/1.258, allocations: 0.7389 MB / 0.508 GB, free: 39.63 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003448/1.259, allocations: 44 kB / 0.5081 GB, free: 39.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002405/1.259, allocations: 403.4 kB / 0.5085 GB, free: 39.19 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005131/1.264, allocations: 1.304 MB / 0.5097 GB, free: 37.88 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005841/1.27, allocations: 1.733 MB / 0.5114 GB, free: 35.97 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006152/1.276, allocations: 1.552 MB / 0.5129 GB, free: 34.42 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.306e-05/1.276, allocations: 8 kB / 0.5129 GB, free: 34.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.01622/1.292, allocations: 3.886 MB / 0.5167 GB, free: 30.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.024e-05/1.293, allocations: 12.83 kB / 0.5168 GB, free: 30.49 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-05/1.293, allocations: 19.94 kB / 0.5168 GB, free: 30.47 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004649/1.297, allocations: 0.7621 MB / 0.5175 GB, free: 29.7 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006167/1.303, allocations: 0.5227 MB / 0.518 GB, free: 29.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02146/1.325, allocations: 8.956 MB / 0.5268 GB, free: 19.83 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004839/1.33, allocations: 111.9 kB / 0.5269 GB, free: 19.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005985/1.33, allocations: 87.98 kB / 0.527 GB, free: 19.63 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (248): * Single equations (assignments): 243 * 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: 3 * 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: 3 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004268/1.335, allocations: 1.204 MB / 0.5281 GB, free: 18.42 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008964/1.336, allocations: 280.7 kB / 0.5284 GB, free: 18.14 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009803/1.345, allocations: 3.769 MB / 0.5321 GB, free: 14.34 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.63e-05/1.346, allocations: 27.69 kB / 0.5321 GB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.524e-05/1.346, allocations: 8 kB / 0.5321 GB, free: 14.31 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.416e-05/1.346, allocations: 7.969 kB / 0.5321 GB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02042/1.366, allocations: 8.061 MB / 0.54 GB, free: 6.176 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.617e-05/1.366, allocations: 4 kB / 0.54 GB, free: 6.172 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003123/1.369, allocations: 395.8 kB / 0.5404 GB, free: 5.785 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0035/1.373, allocations: 0.8159 MB / 0.5412 GB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003713/1.373, allocations: 59.92 kB / 0.5412 GB, free: 4.895 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01691/1.39, allocations: 10.47 MB / 0.5515 GB, free: 9.891 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/1.39, allocations: 4.031 kB / 0.5515 GB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01551/1.406, allocations: 5.832 MB / 0.5572 GB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002344/1.408, allocations: 0.646 MB / 0.5578 GB, free: 3.25 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007044/1.409, allocations: 55.98 kB / 0.5578 GB, free: 3.195 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002518/1.411, allocations: 131.8 kB / 0.558 GB, free: 3.066 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006868/1.412, allocations: 173.8 kB / 0.5581 GB, free: 2.898 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002475/1.412, allocations: 63.98 kB / 0.5582 GB, free: 2.836 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004287/1.417, allocations: 1.684 MB / 0.5598 GB, free: 1.141 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.11e-07/1.417, allocations: 0 / 0.5598 GB, free: 1.141 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004287/1.421, allocations: 0.8437 MB / 0.5607 GB, free: 304 kB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 173 * 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: 4 * 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: 4 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.2627/1.684, allocations: 7.347 MB / 0.5678 GB, free: 78.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01069/1.694, allocations: 3.931 MB / 0.5717 GB, free: 77.82 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.417e-06/1.694, allocations: 1.156 kB / 0.5717 GB, free: 77.82 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006516/1.701, allocations: 2.521 MB / 0.5741 GB, free: 77.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005439/1.706, allocations: 0.748 MB / 0.5749 GB, free: 77.2 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07986/1.786, allocations: 31.73 MB / 0.6059 GB, free: 60.61 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004944/1.791, allocations: 2.787 MB / 0.6086 GB, free: 59.47 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003404/1.795, allocations: 1.401 MB / 0.61 GB, free: 58.34 MB / 362.7 MB Notification: Performance of SimCode: time 1.332e-06/1.795, allocations: 0 / 0.61 GB, free: 58.34 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.598/6.393, allocations: 154.3 MB / 0.7606 GB, free: 80.69 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer_res.mat does not exist to compare? outputFormat=mat