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.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_Modelica_Electrical_Machines_Examples_Transformers_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.72/1.72, allocations: 171.1 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004938/0.0004939, allocations: 8 kB / 233.4 MB, free: 176 kB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0793/0.07985, allocations: 38.78 MB / 272.1 MB, free: 9.312 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3896/0.4695, allocations: 102.3 MB / 374.4 MB, free: 12.12 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003397/0.47, allocations: 91.94 kB / 374.5 MB, free: 12.03 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6076/1.078, allocations: 94.28 MB / 468.8 MB, free: 77.43 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.956e-06/1.078, allocations: 0 / 468.8 MB, free: 77.43 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004224/1.078, allocations: 98.62 kB / 468.9 MB, free: 77.41 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.01505/1.093, allocations: 3.942 MB / 472.8 MB, free: 74.9 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.489e-05/1.093, allocations: 6.938 kB / 472.8 MB, free: 74.9 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00228/1.096, allocations: 0.5023 MB / 473.3 MB, free: 74.54 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002896/1.098, allocations: 0.5083 MB / 473.8 MB, free: 74.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007725/1.106, allocations: 2.513 MB / 476.4 MB, free: 72.63 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003236/1.107, allocations: 264.4 kB / 476.6 MB, free: 72.52 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001703/1.108, allocations: 353.1 kB / 477 MB, free: 72.4 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01563/1.124, allocations: 4.918 MB / 481.9 MB, free: 68.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001639/1.124, allocations: 11.94 kB / 481.9 MB, free: 68.27 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009209/1.125, allocations: 151.6 kB / 482 MB, free: 68.13 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002129/1.125, allocations: 179 kB / 482.2 MB, free: 67.95 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01197/1.137, allocations: 4.041 MB / 486.2 MB, free: 63.91 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03514/1.173, allocations: 14.88 MB / 0.4894 GB, free: 48.82 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006493/1.179, allocations: 4.227 MB / 0.4935 GB, free: 44.29 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005489/1.18, allocations: 143 kB / 0.4936 GB, free: 44.14 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.292e-05/1.18, allocations: 60.56 kB / 0.4937 GB, free: 44.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=201): time 5.55e-06/1.18, allocations: 0 / 0.4937 GB, free: 44.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=221): time 0.03256/1.212, allocations: 10.17 MB / 0.5036 GB, free: 33.8 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.462e-05/1.212, allocations: 81.34 kB / 0.5037 GB, free: 33.71 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004694/1.217, allocations: 2.193 MB / 0.5059 GB, free: 31.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005584/1.218, allocations: 61.7 kB / 0.5059 GB, free: 31.44 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001224/1.219, allocations: 1.591 MB / 0.5075 GB, free: 29.83 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009463/1.22, allocations: 0.7404 MB / 0.5082 GB, free: 29.1 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002247/1.22, allocations: 48 kB / 0.5082 GB, free: 29.05 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001564/1.22, allocations: 390.5 kB / 0.5086 GB, free: 28.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003091/1.223, allocations: 1.312 MB / 0.5099 GB, free: 27.35 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003429/1.227, allocations: 1.733 MB / 0.5116 GB, free: 25.45 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003569/1.231, allocations: 1.556 MB / 0.5131 GB, free: 23.89 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.518e-05/1.231, allocations: 7.938 kB / 0.5131 GB, free: 23.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.01032/1.241, allocations: 4.044 MB / 0.5171 GB, free: 19.81 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.502e-05/1.241, allocations: 8.25 kB / 0.5171 GB, free: 19.8 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.072e-05/1.241, allocations: 20 kB / 0.5171 GB, free: 19.79 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002988/1.244, allocations: 0.762 MB / 0.5178 GB, free: 19.01 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004028/1.248, allocations: 0.5227 MB / 0.5183 GB, free: 18.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01352/1.262, allocations: 8.95 MB / 0.5271 GB, free: 9.145 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003488/1.265, allocations: 115.9 kB / 0.5272 GB, free: 9.031 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005438/1.266, allocations: 88 kB / 0.5273 GB, free: 8.945 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.003295/1.269, allocations: 1.21 MB / 0.5285 GB, free: 7.727 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009497/1.27, allocations: 276.7 kB / 0.5287 GB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01005/1.28, allocations: 3.773 MB / 0.5324 GB, free: 3.652 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.873e-05/1.28, allocations: 23.94 kB / 0.5324 GB, free: 3.629 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.698e-05/1.28, allocations: 12 kB / 0.5324 GB, free: 3.617 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.551e-05/1.28, allocations: 15.89 kB / 0.5325 GB, free: 3.602 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2725/1.553, allocations: 8.051 MB / 0.5403 GB, free: 68.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.253e-05/1.553, allocations: 7.641 kB / 0.5403 GB, free: 68.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003532/1.556, allocations: 390.1 kB / 0.5407 GB, free: 68.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004166/1.561, allocations: 0.8123 MB / 0.5415 GB, free: 68.95 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005732/1.561, allocations: 62.5 kB / 0.5415 GB, free: 68.95 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01735/1.579, allocations: 10.47 MB / 0.5518 GB, free: 63.81 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.624e-06/1.579, allocations: 6.312 kB / 0.5518 GB, free: 63.81 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01538/1.594, allocations: 5.832 MB / 0.5575 GB, free: 63.18 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002566/1.597, allocations: 0.6461 MB / 0.5581 GB, free: 63.08 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009918/1.598, allocations: 54.98 kB / 0.5582 GB, free: 63.08 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00308/1.601, allocations: 127.9 kB / 0.5583 GB, free: 63.08 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009722/1.602, allocations: 179.9 kB / 0.5584 GB, free: 63.08 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002822/1.602, allocations: 68.52 kB / 0.5585 GB, free: 63.08 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004384/1.607, allocations: 1.688 MB / 0.5602 GB, free: 62.93 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.12e-07/1.607, allocations: 0 / 0.5602 GB, free: 62.93 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004064/1.611, allocations: 0.8361 MB / 0.561 GB, free: 62.93 MB / 346.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.0154/1.626, allocations: 7.345 MB / 0.5682 GB, free: 60.43 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009717/1.636, allocations: 3.924 MB / 0.572 GB, free: 58.76 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/1.636, allocations: 2.281 kB / 0.572 GB, free: 58.76 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006451/1.642, allocations: 2.523 MB / 0.5745 GB, free: 57.55 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005597/1.648, allocations: 0.7404 MB / 0.5752 GB, free: 57.36 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06253/1.711, allocations: 31.8 MB / 0.6062 GB, free: 36.66 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004351/1.715, allocations: 2.833 MB / 0.609 GB, free: 35.16 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.003735/1.719, allocations: 0.6821 MB / 0.6097 GB, free: 34.68 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00319/1.722, allocations: 1.388 MB / 0.611 GB, free: 33.39 MB / 346.7 MB Notification: Performance of SimCode: time 1.253e-06/1.722, allocations: 0 / 0.611 GB, free: 33.39 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4283/2.15, allocations: 74.27 MB / 0.6835 GB, free: 83.7 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001719/2.151, allocations: 219.8 kB / 0.6838 GB, free: 83.46 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.419/7.569, allocations: 3.938 kB / 0.6838 GB, free: 83.46 MB / 378.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer_res.mat does not exist to compare? outputFormat=mat