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.001433/0.001433, allocations: 117.8 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001547/0.001547, allocations: 203.8 kB / 18.74 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.351/1.351, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 59.91 kB / 359.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2554, allocations: 50.54 MB / 410.2 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.04887/0.3043, allocations: 50.1 MB / 460.3 MB, free: 15 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02876/0.3331, allocations: 13.14 MB / 473.4 MB, free: 1.82 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01088/0.344, allocations: 382.8 kB / 473.8 MB, free: 1.445 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03376/0.3778, allocations: 13.86 MB / 487.7 MB, free: 3.547 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02004/0.3979, allocations: 5.429 MB / 493.1 MB, free: 14.1 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01098/0.4089, allocations: 3.35 MB / 496.5 MB, free: 10.77 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.03119/0.4401, allocations: 24.36 MB / 0.5086 GB, free: 2.336 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.5628/1.003, allocations: 46.95 MB / 0.5544 GB, free: 8.566 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02065/1.024, allocations: 12.67 MB / 0.5668 GB, free: 7.594 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02305/1.047, allocations: 13.98 MB / 0.5805 GB, free: 4.734 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01131/1.058, allocations: 3.625 MB / 0.584 GB, free: 1.109 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0268/1.085, allocations: 5.254 MB / 0.5891 GB, free: 15.48 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01347/1.098, allocations: 7.293 MB / 0.5963 GB, free: 11.04 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02781/1.126, allocations: 13.95 MB / 0.6099 GB, free: 14.04 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05543/1.182, allocations: 48.75 MB / 0.6575 GB, free: 14.09 MB / 0.5138 GB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/1.182, allocations: 0 / 0.6575 GB, free: 14.09 MB / 0.5138 GB Notification: Performance of FrontEnd: time 1.473e-06/1.182, allocations: 0 / 0.6575 GB, free: 14.09 MB / 0.5138 GB Notification: Performance of Transformations before backend: time 0.001264/1.183, allocations: 4 kB / 0.6575 GB, free: 14.08 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.09033/1.273, allocations: 27.65 MB / 0.6845 GB, free: 2.5 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/1.274, allocations: 16.03 kB / 0.6845 GB, free: 2.484 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01212/1.286, allocations: 2.985 MB / 0.6874 GB, free: 15.5 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0801/1.366, allocations: 13.98 MB / 0.7011 GB, free: 1.648 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03885/1.405, allocations: 14.99 MB / 0.7157 GB, free: 3.219 MB / 0.5607 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001775/1.406, allocations: 1.575 MB / 0.7173 GB, free: 1.664 MB / 0.5607 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01054/1.417, allocations: 2.07 MB / 0.7193 GB, free: 15.61 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5983/2.015, allocations: 34.72 MB / 0.7532 GB, free: 179.3 MB / 0.5764 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001051/2.017, allocations: 32.53 kB / 0.7532 GB, free: 179.3 MB / 0.5764 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008578/2.025, allocations: 0.8535 MB / 0.754 GB, free: 178.7 MB / 0.5764 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001121/2.026, allocations: 1.159 MB / 0.7552 GB, free: 178.5 MB / 0.5764 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07358/2.1, allocations: 32.33 MB / 0.7868 GB, free: 163.1 MB / 0.5764 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.188/2.288, allocations: 106.9 MB / 0.8912 GB, free: 58.33 MB / 0.5764 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0388/2.327, allocations: 50.87 MB / 0.9409 GB, free: 4.047 MB / 0.5764 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01952/2.346, allocations: 9.806 MB / 0.9505 GB, free: 10.2 MB / 0.592 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3942/2.74, allocations: 22.78 MB / 0.9727 GB, free: 182.9 MB / 0.592 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.838e-05/2.741, allocations: 138.4 kB / 0.9728 GB, free: 182.8 MB / 0.592 GB Notification: Performance of pre-optimization done (n=894): time 9.127e-06/2.741, allocations: 0 / 0.9728 GB, free: 182.8 MB / 0.592 GB Notification: Performance of matching and sorting (n=906): time 0.07979/2.82, allocations: 39.52 MB / 1.011 GB, free: 164.9 MB / 0.592 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/2.821, allocations: 167.9 kB / 1.012 GB, free: 164.8 MB / 0.592 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01481/2.835, allocations: 8.389 MB / 1.02 GB, free: 161.8 MB / 0.592 GB Notification: Performance of collectPreVariables (initialization): time 0.001998/2.837, allocations: 172.4 kB / 1.02 GB, free: 161.6 MB / 0.592 GB Notification: Performance of collectInitialEqns (initialization): time 0.004812/2.842, allocations: 8.706 MB / 1.028 GB, free: 155.1 MB / 0.592 GB Notification: Performance of collectInitialBindings (initialization): time 0.003952/2.846, allocations: 3.048 MB / 1.031 GB, free: 152.7 MB / 0.592 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004567/2.851, allocations: 2.207 MB / 1.034 GB, free: 151.7 MB / 0.592 GB Notification: Performance of setup shared object (initialization): time 6.113e-05/2.851, allocations: 308.4 kB / 1.034 GB, free: 151.4 MB / 0.592 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008889/2.86, allocations: 6.253 MB / 1.04 GB, free: 149 MB / 0.592 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01258/2.872, allocations: 9.966 MB / 1.05 GB, free: 139 MB / 0.592 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02175/2.894, allocations: 17.25 MB / 1.067 GB, free: 121.7 MB / 0.592 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001707/2.894, allocations: 35.5 kB / 1.067 GB, free: 121.6 MB / 0.592 GB Notification: Performance of matching and sorting (n=1484) (initialization): time 0.03876/2.933, allocations: 20.33 MB / 1.086 GB, free: 102.1 MB / 0.592 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001888/2.933, allocations: 56.03 kB / 1.087 GB, free: 102.1 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000267/2.934, 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.003124/2.937, allocations: 0.9261 MB / 1.088 GB, free: 101 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01034/2.947, allocations: 2.406 MB / 1.09 GB, free: 98.61 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01051/2.958, allocations: 12.46 MB / 1.102 GB, free: 85.49 MB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01106/2.969, allocations: 0.6008 MB / 1.103 GB, free: 84.89 MB / 0.592 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003055/2.972, allocations: 0.5117 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.018/2.99, allocations: 7.927 MB / 1.111 GB, free: 76.43 MB / 0.592 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003765/2.994, allocations: 0.9069 MB / 1.112 GB, free: 75.52 MB / 0.592 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03623/3.03, allocations: 17.05 MB / 1.128 GB, free: 58.33 MB / 0.592 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.829e-05/3.03, allocations: 92 kB / 1.128 GB, free: 58.24 MB / 0.592 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001504/3.03, allocations: 44 kB / 1.129 GB, free: 58.2 MB / 0.592 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002426/3.031, allocations: 47.77 kB / 1.129 GB, free: 58.15 MB / 0.592 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08414/3.115, allocations: 35.88 MB / 1.164 GB, free: 22.19 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.889e-05/3.115, allocations: 11.92 kB / 1.164 GB, free: 22.18 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007266/3.122, allocations: 1.428 MB / 1.165 GB, free: 20.75 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.003399/3.126, allocations: 0.9797 MB / 1.166 GB, free: 19.75 MB / 0.592 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002322/3.128, allocations: 207.9 kB / 1.166 GB, free: 19.55 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3707/3.499, allocations: 17.1 MB / 1.183 GB, free: 166.5 MB / 0.592 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.316e-05/3.499, allocations: 14.16 kB / 1.183 GB, free: 166.5 MB / 0.592 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03858/3.537, allocations: 24.82 MB / 1.207 GB, free: 158.9 MB / 0.592 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006907/3.544, allocations: 2.246 MB / 1.209 GB, free: 158.1 MB / 0.592 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002705/3.547, allocations: 177.9 kB / 1.209 GB, free: 158 MB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006291/3.553, allocations: 0.4893 MB / 1.21 GB, free: 157.8 MB / 0.592 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002107/3.555, allocations: 0.7835 MB / 1.211 GB, free: 157.7 MB / 0.592 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008364/3.556, allocations: 260 kB / 1.211 GB, free: 157.7 MB / 0.592 GB Notification: Performance of sorting global known variables: time 0.01003/3.566, allocations: 5.714 MB / 1.217 GB, free: 155.6 MB / 0.592 GB Notification: Performance of sort global known variables: time 4.71e-07/3.566, allocations: 0 / 1.217 GB, free: 155.6 MB / 0.592 GB Notification: Performance of remove unused functions: time 0.01316/3.579, allocations: 3.471 MB / 1.22 GB, free: 155.3 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.03989/3.619, allocations: 25.77 MB / 1.245 GB, free: 144.4 MB / 0.592 GB Notification: Performance of simCode: created initialization part: time 0.02224/3.642, allocations: 16.15 MB / 1.261 GB, free: 133 MB / 0.592 GB Notification: Performance of simCode: created event and clocks part: time 1.325e-05/3.642, allocations: 0 / 1.261 GB, free: 133 MB / 0.592 GB Notification: Performance of simCode: created simulation system equations: time 0.01378/3.655, allocations: 8.779 MB / 1.269 GB, free: 125.3 MB / 0.592 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01467/3.67, allocations: 2.566 MB / 1.272 GB, free: 123.2 MB / 0.592 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2491/3.919, allocations: 128.1 MB / 1.397 GB, free: 9.598 MB / 0.6077 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3116/4.231, allocations: 13.13 MB / 1.41 GB, free: 192.1 MB / 0.6077 GB Notification: Performance of simCode: alias equations: time 0.01117/4.242, allocations: 3.998 MB / 1.414 GB, free: 191.7 MB / 0.6077 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01064/4.253, allocations: 7.829 MB / 1.421 GB, free: 187.5 MB / 0.6077 GB Notification: Performance of SimCode: time 1.182e-06/4.253, allocations: 4 kB / 1.421 GB, free: 187.5 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6969/4.95, allocations: 281.8 MB / 1.697 GB, free: 154.9 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.49/38.44, allocations: 8.219 kB / 1.697 GB, free: 154.9 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)