Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001213/0.001214, allocations: 110.8 kB / 17.06 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 200 kB / 18.01 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.29/1.29, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 51.92 kB / 352.2 MB, free: 2.301 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4044/0.4058, allocations: 49.44 MB / 401.7 MB, free: 8.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.05426/0.4601, allocations: 49.45 MB / 451.1 MB, free: 6.957 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03121/0.4914, allocations: 12.88 MB / 464 MB, free: 10.04 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01056/0.502, allocations: 378.8 kB / 464.4 MB, free: 9.668 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0329/0.535, allocations: 13.86 MB / 478.2 MB, free: 11.77 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02362/0.5586, allocations: 5.43 MB / 483.7 MB, free: 6.316 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01219/0.5708, allocations: 3.241 MB / 486.9 MB, free: 3.09 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.03288/0.6037, allocations: 24.2 MB / 0.4991 GB, free: 10.81 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.5743/1.178, allocations: 46.95 MB / 0.545 GB, free: 15.23 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02186/1.2, allocations: 12.64 MB / 0.5573 GB, free: 14.28 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02206/1.222, allocations: 13.81 MB / 0.5708 GB, free: 12.07 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01353/1.236, allocations: 3.626 MB / 0.5744 GB, free: 11.3 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01626/1.252, allocations: 4.117 MB / 0.5784 GB, free: 7.453 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01287/1.265, allocations: 7.284 MB / 0.5855 GB, free: 5.312 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.04073/1.306, allocations: 14.95 MB / 0.6001 GB, free: 12.21 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06724/1.373, allocations: 48.7 MB / 0.6476 GB, free: 12.5 MB / 0.4982 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/1.373, allocations: 0 / 0.6476 GB, free: 12.5 MB / 0.4982 GB Notification: Performance of FrontEnd: time 1.803e-06/1.373, allocations: 0 / 0.6476 GB, free: 12.5 MB / 0.4982 GB Notification: Performance of Transformations before backend: time 0.00135/1.374, allocations: 0 / 0.6476 GB, free: 12.5 MB / 0.4982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5818 * Number of variables: 5818 Notification: Performance of Generate backend data structure: time 0.09317/1.467, allocations: 27.61 MB / 0.6746 GB, free: 0.9727 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 4.336e-05/1.468, allocations: 8.031 kB / 0.6746 GB, free: 0.9648 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0105/1.478, allocations: 2.981 MB / 0.6775 GB, free: 13.99 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07813/1.556, allocations: 13.94 MB / 0.6911 GB, free: 176 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03926/1.596, allocations: 14.96 MB / 0.7057 GB, free: 1.77 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001888/1.597, allocations: 1.574 MB / 0.7073 GB, free: 220 kB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01053/1.608, allocations: 2.067 MB / 0.7093 GB, free: 14.17 MB / 0.5607 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6239/2.232, allocations: 34.73 MB / 0.7432 GB, free: 185 MB / 0.5764 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000999/2.233, allocations: 25.8 kB / 0.7432 GB, free: 185 MB / 0.5764 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008926/2.242, allocations: 0.8584 MB / 0.7441 GB, free: 185 MB / 0.5764 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001267/2.243, allocations: 1.158 MB / 0.7452 GB, free: 184.9 MB / 0.5764 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0682/2.311, allocations: 32.33 MB / 0.7768 GB, free: 171.8 MB / 0.5764 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1965/2.508, allocations: 106.3 MB / 0.8806 GB, free: 78.01 MB / 0.5764 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0377/2.546, allocations: 50.87 MB / 0.9303 GB, free: 23.75 MB / 0.5764 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01528/2.561, allocations: 9.801 MB / 0.9398 GB, free: 13.9 MB / 0.5764 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05265/2.614, allocations: 22.55 MB / 0.9619 GB, free: 7.461 MB / 0.592 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001748/2.614, allocations: 129.9 kB / 0.962 GB, free: 7.32 MB / 0.592 GB Notification: Performance of pre-optimization done (n=894): time 2.292e-05/2.614, allocations: 3.984 kB / 0.962 GB, free: 7.316 MB / 0.592 GB Notification: Performance of matching and sorting (n=906): time 0.4704/3.084, allocations: 39.51 MB / 1.001 GB, free: 181.8 MB / 0.592 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/3.085, allocations: 173.7 kB / 1.001 GB, free: 181.7 MB / 0.592 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01823/3.103, allocations: 8.348 MB / 1.009 GB, free: 178.7 MB / 0.592 GB Notification: Performance of collectPreVariables (initialization): time 0.002504/3.105, allocations: 174.3 kB / 1.009 GB, free: 178.6 MB / 0.592 GB Notification: Performance of collectInitialEqns (initialization): time 0.006275/3.112, allocations: 8.692 MB / 1.018 GB, free: 172.1 MB / 0.592 GB Notification: Performance of collectInitialBindings (initialization): time 0.004793/3.116, allocations: 3.054 MB / 1.021 GB, free: 169.7 MB / 0.592 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00525/3.122, allocations: 2.21 MB / 1.023 GB, free: 168.7 MB / 0.592 GB Notification: Performance of setup shared object (initialization): time 6.392e-05/3.122, allocations: 301.1 kB / 1.023 GB, free: 168.4 MB / 0.592 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009265/3.131, allocations: 6.249 MB / 1.029 GB, free: 166 MB / 0.592 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01332/3.144, allocations: 9.979 MB / 1.039 GB, free: 159 MB / 0.592 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02608/3.171, allocations: 17.24 MB / 1.056 GB, free: 146.3 MB / 0.592 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001874/3.171, allocations: 34.95 kB / 1.056 GB, free: 146.3 MB / 0.592 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.04506/3.216, allocations: 20.33 MB / 1.076 GB, free: 128.6 MB / 0.592 GB Notification: Performance of prepare postOptimizeDAE: time 0.000236/3.216, allocations: 53.09 kB / 1.076 GB, free: 128.5 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003262/3.216, allocations: 120.1 kB / 1.076 GB, free: 128.4 MB / 0.592 GB Notification: Tearing is skipped for strong component 1 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing=. Notification: Performance of postOpt tearingSystem (initialization): time 0.003038/3.22, allocations: 0.9303 MB / 1.077 GB, free: 127.7 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009809/3.229, allocations: 2.413 MB / 1.079 GB, free: 125.5 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009842/3.239, allocations: 12.44 MB / 1.091 GB, free: 112.4 MB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01149/3.251, allocations: 0.6124 MB / 1.092 GB, free: 111.8 MB / 0.592 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002936/3.254, allocations: 0.5078 MB / 1.092 GB, free: 111.3 MB / 0.592 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 531 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],booleanStep2QS[3].y,booleanStep2QS[2].y,booleanStep2QS[1].y,booleanStep1QS[3].y,booleanStep1QS[2].y,booleanStep1QS[1].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1230): * Single equations (assignments): 1223 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (204,1.3%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.02102/3.275, allocations: 7.927 MB / 1.1 GB, free: 103.3 MB / 0.592 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004603/3.279, allocations: 0.9069 MB / 1.101 GB, free: 102.4 MB / 0.592 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03244/3.312, allocations: 17.04 MB / 1.117 GB, free: 85.23 MB / 0.592 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001024/3.312, allocations: 95.94 kB / 1.118 GB, free: 85.13 MB / 0.592 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001419/3.312, allocations: 40 kB / 1.118 GB, free: 85.09 MB / 0.592 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002676/3.312, allocations: 49.14 kB / 1.118 GB, free: 85.05 MB / 0.592 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08313/3.396, allocations: 35.88 MB / 1.153 GB, free: 49.09 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.816e-05/3.396, allocations: 4 kB / 1.153 GB, free: 49.09 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006361/3.402, allocations: 1.424 MB / 1.154 GB, free: 47.66 MB / 0.592 GB Notification: Tearing is skipped for strong component 14 because system size of 204 exceeds maximum system size for tearing of linear systems (200). To adjust the maximum system size for tearing use --maxSizeLinearTearing=. Notification: Performance of postOpt tearingSystem (simulation): time 0.003115/3.405, allocations: 0.9823 MB / 1.155 GB, free: 46.66 MB / 0.592 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001938/3.407, allocations: 203.9 kB / 1.155 GB, free: 46.46 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01335/3.42, allocations: 17.1 MB / 1.172 GB, free: 28.44 MB / 0.592 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.735e-06/3.42, allocations: 16.17 kB / 1.172 GB, free: 28.42 MB / 0.592 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3574/3.778, allocations: 24.81 MB / 1.196 GB, free: 170.8 MB / 0.592 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007815/3.786, allocations: 2.247 MB / 1.198 GB, free: 170 MB / 0.592 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00385/3.79, allocations: 179.8 kB / 1.199 GB, free: 169.9 MB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00826/3.798, allocations: 492.4 kB / 1.199 GB, free: 169.8 MB / 0.592 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002917/3.801, allocations: 0.7851 MB / 1.2 GB, free: 169.7 MB / 0.592 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001083/3.802, allocations: 258 kB / 1.2 GB, free: 169.6 MB / 0.592 GB Notification: Performance of sorting global known variables: time 0.01142/3.813, allocations: 5.696 MB / 1.206 GB, free: 167.6 MB / 0.592 GB Notification: Performance of sort global known variables: time 3.7e-07/3.813, allocations: 0 / 1.206 GB, free: 167.6 MB / 0.592 GB Notification: Performance of remove unused functions: time 0.01531/3.829, allocations: 3.467 MB / 1.209 GB, free: 167.2 MB / 0.592 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 12 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,quadraticLoadTorqueQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 (703): * Single equations (assignments): 695 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(204,1.3%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,1,100.0%), (1,8,100.0%), (3,25,88.9%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.051/3.88, allocations: 25.77 MB / 1.234 GB, free: 156.4 MB / 0.592 GB Notification: Performance of simCode: created initialization part: time 0.0311/3.911, allocations: 16.14 MB / 1.25 GB, free: 150 MB / 0.592 GB Notification: Performance of simCode: created event and clocks part: time 1.601e-05/3.911, allocations: 1.484 kB / 1.25 GB, free: 150 MB / 0.592 GB Notification: Performance of simCode: created simulation system equations: time 0.01675/3.928, allocations: 8.764 MB / 1.258 GB, free: 146.1 MB / 0.592 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01925/3.947, allocations: 2.565 MB / 1.261 GB, free: 144.1 MB / 0.592 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2547/4.202, allocations: 128 MB / 1.386 GB, free: 15.33 MB / 0.592 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02514/4.227, allocations: 13.13 MB / 1.399 GB, free: 2.148 MB / 0.592 GB Notification: Performance of simCode: alias equations: time 0.01559/4.243, allocations: 3.989 MB / 1.403 GB, free: 14.15 MB / 0.6077 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3251/4.568, allocations: 7.816 MB / 1.41 GB, free: 189.4 MB / 0.6077 GB Notification: Performance of SimCode: time 1.443e-06/4.568, allocations: 0 / 1.41 GB, free: 189.4 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6881/5.256, allocations: 281.6 MB / 1.685 GB, free: 160.5 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate platform static: time 37.92/43.18, allocations: 6.953 kB / 1.685 GB, free: 160.5 MB / 0.6077 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1)