Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001152/0.001152, allocations: 118.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001284/0.001284, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002277/0.002277, allocations: 67.88 kB / 359.7 MB, free: 12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2861/0.2884, allocations: 50.54 MB / 410.2 MB, free: 1.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.04827/0.3367, allocations: 50.09 MB / 460.3 MB, free: 15.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02971/0.3665, allocations: 13.14 MB / 473.4 MB, free: 1.871 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01224/0.3788, allocations: 382.8 kB / 473.8 MB, free: 1.496 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03201/0.4109, allocations: 13.85 MB / 487.7 MB, free: 3.609 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02116/0.4321, allocations: 5.433 MB / 493.1 MB, free: 14.16 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01135/0.4434, allocations: 3.348 MB / 496.4 MB, free: 10.84 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.03253/0.476, allocations: 24.35 MB / 0.5086 GB, free: 2.398 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.5945/1.071, allocations: 46.95 MB / 0.5544 GB, free: 8.641 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02092/1.092, allocations: 12.66 MB / 0.5668 GB, free: 7.676 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02642/1.118, allocations: 13.98 MB / 0.5805 GB, free: 4.816 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01106/1.129, allocations: 3.625 MB / 0.584 GB, free: 1.191 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02517/1.154, allocations: 5.248 MB / 0.5891 GB, free: 15.54 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01222/1.167, allocations: 7.291 MB / 0.5962 GB, free: 10.97 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02672/1.193, allocations: 13.94 MB / 0.6099 GB, free: 13.95 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05992/1.253, allocations: 48.74 MB / 0.6575 GB, free: 14 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/1.253, allocations: 4 kB / 0.6575 GB, free: 13.99 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.823e-06/1.253, allocations: 0 / 0.6575 GB, free: 13.99 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.001408/1.255, allocations: 0 / 0.6575 GB, free: 13.99 MB / 0.5138 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.09439/1.349, allocations: 27.66 MB / 0.6845 GB, free: 2.406 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 6.096e-05/1.349, allocations: 15.97 kB / 0.6845 GB, free: 2.391 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01315/1.362, allocations: 2.982 MB / 0.6874 GB, free: 15.43 MB / 0.5451 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07518/1.438, allocations: 13.99 MB / 0.7011 GB, free: 1.562 MB / 0.5451 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03329/1.471, allocations: 14.99 MB / 0.7157 GB, free: 3.137 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001842/1.473, allocations: 1.578 MB / 0.7172 GB, free: 1.578 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01039/1.483, allocations: 2.073 MB / 0.7193 GB, free: 15.53 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6367/2.12, allocations: 34.72 MB / 0.7532 GB, free: 179.6 MB / 0.5764 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001099/2.121, allocations: 30.52 kB / 0.7532 GB, free: 179.6 MB / 0.5764 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007756/2.129, allocations: 0.8605 MB / 0.754 GB, free: 178.9 MB / 0.5764 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001237/2.13, allocations: 1.156 MB / 0.7552 GB, free: 178.8 MB / 0.5764 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06952/2.2, allocations: 32.34 MB / 0.7867 GB, free: 163.2 MB / 0.5764 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1872/2.387, allocations: 106.9 MB / 0.8912 GB, free: 58.3 MB / 0.5764 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03822/2.425, allocations: 50.88 MB / 0.9409 GB, free: 4.012 MB / 0.5764 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01977/2.445, allocations: 9.804 MB / 0.9504 GB, free: 10.16 MB / 0.592 GB Notification: Performance of preOpt evalFunc (simulation): time 0.369/2.814, allocations: 22.78 MB / 0.9727 GB, free: 183.1 MB / 0.592 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001162/2.814, allocations: 129.5 kB / 0.9728 GB, free: 183 MB / 0.592 GB Notification: Performance of pre-optimization done (n=894): time 1.17e-05/2.814, allocations: 0 / 0.9728 GB, free: 183 MB / 0.592 GB Notification: Performance of matching and sorting (n=906): time 0.07026/2.885, allocations: 39.53 MB / 1.011 GB, free: 165.1 MB / 0.592 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.747e-05/2.885, allocations: 171.8 kB / 1.012 GB, free: 165 MB / 0.592 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01284/2.898, allocations: 8.381 MB / 1.02 GB, free: 161.9 MB / 0.592 GB Notification: Performance of collectPreVariables (initialization): time 0.001712/2.899, allocations: 175.3 kB / 1.02 GB, free: 161.8 MB / 0.592 GB Notification: Performance of collectInitialEqns (initialization): time 0.004729/2.904, allocations: 8.71 MB / 1.028 GB, free: 155.3 MB / 0.592 GB Notification: Performance of collectInitialBindings (initialization): time 0.00351/2.908, allocations: 3.044 MB / 1.031 GB, free: 152.9 MB / 0.592 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004539/2.912, allocations: 2.212 MB / 1.034 GB, free: 151.9 MB / 0.592 GB Notification: Performance of setup shared object (initialization): time 4.56e-05/2.912, allocations: 305.1 kB / 1.034 GB, free: 151.6 MB / 0.592 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009013/2.921, allocations: 6.25 MB / 1.04 GB, free: 149.2 MB / 0.592 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01287/2.934, allocations: 9.969 MB / 1.05 GB, free: 139.1 MB / 0.592 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02058/2.955, allocations: 17.25 MB / 1.067 GB, free: 121.8 MB / 0.592 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001161/2.955, allocations: 32 kB / 1.067 GB, free: 121.8 MB / 0.592 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.03584/2.991, allocations: 20.34 MB / 1.086 GB, free: 102.1 MB / 0.592 GB Notification: Performance of prepare postOptimizeDAE: time 9.478e-05/2.991, allocations: 56 kB / 1.086 GB, free: 102.1 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001747/2.991, allocations: 116 kB / 1.087 GB, free: 102 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.002721/2.994, allocations: 0.9223 MB / 1.087 GB, free: 101 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009449/3.003, allocations: 2.406 MB / 1.09 GB, free: 98.63 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009146/3.012, allocations: 12.47 MB / 1.102 GB, free: 85.51 MB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008824/3.021, allocations: 0.6008 MB / 1.103 GB, free: 84.91 MB / 0.592 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002183/3.024, allocations: 0.5234 MB / 1.103 GB, free: 84.38 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.01328/3.037, allocations: 7.915 MB / 1.111 GB, free: 76.45 MB / 0.592 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002461/3.039, allocations: 0.9069 MB / 1.112 GB, free: 75.53 MB / 0.592 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02687/3.066, allocations: 17.05 MB / 1.128 GB, free: 58.35 MB / 0.592 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-05/3.066, allocations: 92 kB / 1.128 GB, free: 58.26 MB / 0.592 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.848e-05/3.066, allocations: 43.94 kB / 1.129 GB, free: 58.21 MB / 0.592 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001797/3.067, allocations: 51.77 kB / 1.129 GB, free: 58.16 MB / 0.592 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06424/3.131, allocations: 35.88 MB / 1.164 GB, free: 22.21 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.489e-05/3.131, allocations: 11.94 kB / 1.164 GB, free: 22.2 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006423/3.137, allocations: 1.424 MB / 1.165 GB, free: 20.77 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.003126/3.141, allocations: 0.9841 MB / 1.166 GB, free: 19.77 MB / 0.592 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00166/3.142, allocations: 207.9 kB / 1.166 GB, free: 19.56 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3653/3.508, allocations: 17.1 MB / 1.183 GB, free: 166.1 MB / 0.592 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.256e-05/3.508, allocations: 18.25 kB / 1.183 GB, free: 166.1 MB / 0.592 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04318/3.551, allocations: 24.82 MB / 1.207 GB, free: 158.7 MB / 0.592 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006737/3.558, allocations: 2.254 MB / 1.209 GB, free: 158 MB / 0.592 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003567/3.561, allocations: 177.5 kB / 1.209 GB, free: 157.8 MB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007487/3.569, allocations: 497 kB / 1.21 GB, free: 157.7 MB / 0.592 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003086/3.572, allocations: 0.7874 MB / 1.211 GB, free: 157.6 MB / 0.592 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001258/3.573, allocations: 256.4 kB / 1.211 GB, free: 157.6 MB / 0.592 GB Notification: Performance of sorting global known variables: time 0.01164/3.585, allocations: 5.712 MB / 1.217 GB, free: 155.5 MB / 0.592 GB Notification: Performance of sort global known variables: time 1.393e-06/3.585, allocations: 3.969 kB / 1.217 GB, free: 155.5 MB / 0.592 GB Notification: Performance of remove unused functions: time 0.01702/3.602, allocations: 3.469 MB / 1.22 GB, free: 155.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,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.04294/3.645, allocations: 25.77 MB / 1.245 GB, free: 144.3 MB / 0.592 GB Notification: Performance of simCode: created initialization part: time 0.03014/3.675, allocations: 16.15 MB / 1.261 GB, free: 132.8 MB / 0.592 GB Notification: Performance of simCode: created event and clocks part: time 1.797e-05/3.675, allocations: 2.25 kB / 1.261 GB, free: 132.8 MB / 0.592 GB Notification: Performance of simCode: created simulation system equations: time 0.01398/3.689, allocations: 8.774 MB / 1.269 GB, free: 125.2 MB / 0.592 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0173/3.706, allocations: 2.563 MB / 1.272 GB, free: 123.1 MB / 0.592 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2362/3.943, allocations: 128.1 MB / 1.397 GB, free: 9.371 MB / 0.6077 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2877/4.23, allocations: 13.13 MB / 1.41 GB, free: 192.6 MB / 0.6077 GB Notification: Performance of simCode: alias equations: time 0.0134/4.244, allocations: 3.997 MB / 1.414 GB, free: 192.2 MB / 0.6077 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01503/4.259, allocations: 7.827 MB / 1.421 GB, free: 188.1 MB / 0.6077 GB Notification: Performance of SimCode: time 1.563e-06/4.259, allocations: 0 / 1.421 GB, free: 188.1 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7468/5.006, allocations: 281.8 MB / 1.697 GB, free: 155 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate platform static: time 34.23/39.23, allocations: 7.547 kB / 1.697 GB, free: 155 MB / 0.6077 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1)