Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_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_3_2_3_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.00133/0.00133, allocations: 113.4 kB / 17.73 MB, free: 5.34 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.001525/0.001525, allocations: 188.2 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.452/1.452, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001409/0.001409, allocations: 51.92 kB / 329.5 MB, free: 2.359 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0931/0.09452, allocations: 46.62 MB / 376.1 MB, free: 3.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.2719/0.3664, allocations: 49.51 MB / 425.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03718/0.4037, allocations: 12.93 MB / 438.5 MB, free: 308 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01697/0.4207, allocations: 323.2 kB / 438.8 MB, free: 172 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03433/0.4551, allocations: 13.85 MB / 452.7 MB, free: 2.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02815/0.4833, allocations: 5.47 MB / 458.2 MB, free: 12.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01247/0.4958, allocations: 3.288 MB / 461.5 MB, free: 9.484 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03242/0.5282, allocations: 24.41 MB / 485.9 MB, free: 0.9883 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06604/0.5943, allocations: 46.86 MB / 0.5202 GB, free: 1.848 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02202/0.6164, allocations: 12.72 MB / 0.5327 GB, free: 5.098 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02509/0.6415, allocations: 13.91 MB / 0.5462 GB, free: 7.141 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0116/0.6531, allocations: 3.637 MB / 0.5498 GB, free: 3.504 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4989/1.152, allocations: 4.103 MB / 0.5538 GB, free: 68.4 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01314/1.165, allocations: 7.35 MB / 0.561 GB, free: 68.4 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0357/1.201, allocations: 13.87 MB / 0.5745 GB, free: 66.57 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05658/1.258, allocations: 48.63 MB / 0.622 GB, free: 42.63 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.71e-06/1.258, allocations: 0.6875 kB / 0.622 GB, free: 42.63 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.054e-06/1.258, allocations: 0 / 0.622 GB, free: 42.63 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.001355/1.259, allocations: 0.8125 kB / 0.622 GB, free: 42.63 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5875 * Number of variables: 5875 Notification: Performance of Generate backend data structure: time 0.08545/1.344, allocations: 27.78 MB / 0.6491 GB, free: 24.99 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/1.345, allocations: 8.031 kB / 0.6492 GB, free: 24.98 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01104/1.356, allocations: 3.013 MB / 0.6521 GB, free: 21.98 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07514/1.431, allocations: 14.92 MB / 0.6667 GB, free: 7.191 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02989/1.461, allocations: 13.41 MB / 0.6798 GB, free: 10.36 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001653/1.462, allocations: 1.581 MB / 0.6813 GB, free: 8.805 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00846/1.471, allocations: 2.096 MB / 0.6833 GB, free: 6.73 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08679/1.558, allocations: 35.17 MB / 0.7177 GB, free: 3.5 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008871/1.559, allocations: 31.45 kB / 0.7177 GB, free: 3.473 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006786/1.565, allocations: 0.8622 MB / 0.7186 GB, free: 2.633 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00121/1.567, allocations: 1.188 MB / 0.7197 GB, free: 1.441 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06792/1.635, allocations: 33 MB / 0.7519 GB, free: 444 kB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3977/2.032, allocations: 107.6 MB / 0.857 GB, free: 106 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04063/2.073, allocations: 55.89 MB / 0.9116 GB, free: 49.62 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01619/2.089, allocations: 9.958 MB / 0.9213 GB, free: 39.62 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0592/2.148, allocations: 27.29 MB / 0.948 GB, free: 12.46 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001084/2.149, allocations: 137.8 kB / 0.9481 GB, free: 12.32 MB / 0.545 GB Notification: Performance of pre-optimization done (n=894): time 1.508e-05/2.149, allocations: 0 / 0.9481 GB, free: 12.32 MB / 0.545 GB Notification: Performance of matching and sorting (n=906): time 0.3174/2.466, allocations: 39.47 MB / 0.9867 GB, free: 160.6 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.203e-05/2.466, allocations: 171.3 kB / 0.9868 GB, free: 160.5 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01677/2.483, allocations: 8.506 MB / 0.9951 GB, free: 157.4 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001887/2.485, allocations: 174.1 kB / 0.9953 GB, free: 157.3 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004794/2.49, allocations: 8.835 MB / 1.004 GB, free: 150.7 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.003103/2.493, allocations: 3.055 MB / 1.007 GB, free: 148.3 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004076/2.497, allocations: 2.275 MB / 1.009 GB, free: 147.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.265e-05/2.497, allocations: 301.1 kB / 1.009 GB, free: 146.9 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008158/2.505, allocations: 6.306 MB / 1.016 GB, free: 144.6 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01029/2.515, allocations: 10.27 MB / 1.026 GB, free: 137.2 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0205/2.536, allocations: 17.62 MB / 1.043 GB, free: 121 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001469/2.536, allocations: 36 kB / 1.043 GB, free: 121 MB / 0.545 GB Notification: Performance of matching and sorting (n=1523) (initialization): time 0.03898/2.575, allocations: 20.64 MB / 1.063 GB, free: 103 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004131/2.576, allocations: 56 kB / 1.063 GB, free: 103 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004612/2.576, allocations: 129.2 kB / 1.063 GB, free: 102.8 MB / 0.545 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.003157/2.579, allocations: 0.9274 MB / 1.064 GB, free: 102.1 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01034/2.59, allocations: 2.486 MB / 1.067 GB, free: 99.96 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009739/2.599, allocations: 12.48 MB / 1.079 GB, free: 87.71 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01076/2.61, allocations: 0.6134 MB / 1.079 GB, free: 87.21 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002316/2.613, allocations: 0.5345 MB / 1.08 GB, free: 86.69 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 570 * 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 (1269): * Single equations (assignments): 1262 * 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,100.0%), (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.01593/2.628, allocations: 7.987 MB / 1.088 GB, free: 79.89 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003918/2.632, allocations: 0.9183 MB / 1.089 GB, free: 78.96 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03248/2.665, allocations: 17.07 MB / 1.105 GB, free: 63.58 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.13e-05/2.665, allocations: 92 kB / 1.105 GB, free: 63.49 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001331/2.665, allocations: 40 kB / 1.105 GB, free: 63.45 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000194/2.665, allocations: 55.75 kB / 1.105 GB, free: 63.39 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07967/2.745, allocations: 35.96 MB / 1.14 GB, free: 27.38 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.176e-05/2.745, allocations: 8 kB / 1.14 GB, free: 27.38 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006543/2.752, allocations: 1.424 MB / 1.142 GB, free: 25.95 MB / 0.545 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.003305/2.755, allocations: 0.9733 MB / 1.143 GB, free: 24.96 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001837/2.757, allocations: 204 kB / 1.143 GB, free: 24.76 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0124/2.769, allocations: 17.05 MB / 1.16 GB, free: 6.781 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.124e-06/2.769, allocations: 8 kB / 1.16 GB, free: 6.773 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2924/3.062, allocations: 24.82 MB / 1.184 GB, free: 147.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008583/3.07, allocations: 2.253 MB / 1.186 GB, free: 147 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004073/3.074, allocations: 175.5 kB / 1.186 GB, free: 146.8 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008703/3.083, allocations: 497.4 kB / 1.187 GB, free: 146.7 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003251/3.086, allocations: 0.7881 MB / 1.188 GB, free: 146.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002034/3.089, allocations: 260.2 kB / 1.188 GB, free: 146.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.01635/3.105, allocations: 5.77 MB / 1.193 GB, free: 144.5 MB / 0.545 GB Notification: Performance of sort global known variables: time 3.11e-07/3.105, allocations: 0 / 1.193 GB, free: 144.5 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.02181/3.127, allocations: 3.516 MB / 1.197 GB, free: 144.2 MB / 0.545 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%), (2,26,100.0%), (1,1,100.0%), (1,8,100.0%), (1,13,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.05122/3.178, allocations: 25.76 MB / 1.222 GB, free: 133.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02908/3.207, allocations: 16.28 MB / 1.238 GB, free: 119.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.482e-05/3.207, allocations: 0 / 1.238 GB, free: 119.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01585/3.223, allocations: 8.75 MB / 1.246 GB, free: 111.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02233/3.245, allocations: 2.568 MB / 1.249 GB, free: 109.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4945/3.74, allocations: 130 MB / 1.376 GB, free: 202.4 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03373/3.774, allocations: 13.2 MB / 1.389 GB, free: 201.2 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.01802/3.792, allocations: 4.021 MB / 1.393 GB, free: 200.8 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01752/3.809, allocations: 7.946 MB / 1.4 GB, free: 198 MB / 0.5763 GB Notification: Performance of SimCode: time 1.543e-06/3.809, allocations: 1.156 kB / 1.4 GB, free: 198 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6545/4.464, allocations: 283.5 MB / 1.677 GB, free: 133.4 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 34.82/39.28, allocations: 5.438 kB / 1.677 GB, free: 133.4 MB / 0.5763 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1)