Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.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: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD") translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006299/0.006298, allocations: 102.3 kB / 15.73 MB, free: 6.039 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.00138/0.00138, allocations: 189.1 kB / 16.67 MB, free: 5.973 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.516/1.516, allocations: 205.1 MB / 222.5 MB, free: 4.516 MB / 174.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.001277/0.001277, allocations: 47.72 kB / 328 MB, free: 13.46 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1228, allocations: 46.63 MB / 374.6 MB, free: 15.89 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD): time 0.03907/0.162, allocations: 36.58 MB / 411.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02902/0.191, allocations: 9.765 MB / 421 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01083/0.2019, allocations: 227.2 kB / 421.2 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02531/0.2273, allocations: 9.749 MB / 430.9 MB, free: 7.336 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01964/0.247, allocations: 4.177 MB / 435.1 MB, free: 3.137 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0096/0.2566, allocations: 2.46 MB / 437.6 MB, free: 0.6719 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.5454/0.802, allocations: 17.08 MB / 454.6 MB, free: 7.676 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05256/0.8546, allocations: 31.24 MB / 485.9 MB, free: 3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01709/0.8717, allocations: 8.877 MB / 494.8 MB, free: 0 / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01995/0.8918, allocations: 9.615 MB / 0.4926 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009436/0.9012, allocations: 2.512 MB / 0.495 GB, free: 7.883 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01471/0.916, allocations: 2.903 MB / 0.4978 GB, free: 5.09 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01279/0.9288, allocations: 5.028 MB / 0.5028 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02526/0.9541, allocations: 9.527 MB / 0.5121 GB, free: 8.125 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04919/1.003, allocations: 33.2 MB / 0.5445 GB, free: 9.141 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/1.003, allocations: 3.844 kB / 0.5445 GB, free: 9.141 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.723e-06/1.003, allocations: 0 / 0.5445 GB, free: 9.141 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001091/1.004, allocations: 0 / 0.5445 GB, free: 9.141 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3951 * Number of variables: 3951 Notification: Performance of Generate backend data structure: time 0.07316/1.078, allocations: 19.3 MB / 0.5633 GB, free: 5.863 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.364e-05/1.078, allocations: 8.031 kB / 0.5633 GB, free: 5.855 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05569/1.133, allocations: 9.733 MB / 0.5728 GB, free: 12.22 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02154/1.155, allocations: 9.495 MB / 0.5821 GB, free: 3.102 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001181/1.156, allocations: 1.061 MB / 0.5832 GB, free: 2.051 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006909/1.163, allocations: 1.396 MB / 0.5845 GB, free: 0.668 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06899/1.232, allocations: 23.58 MB / 0.6075 GB, free: 9.02 MB / 0.4982 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006217/1.233, allocations: 27.73 kB / 0.6076 GB, free: 8.996 MB / 0.4982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005291/1.238, allocations: 0.5804 MB / 0.6081 GB, free: 8.434 MB / 0.4982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001016/1.239, allocations: 0.8068 MB / 0.6089 GB, free: 7.625 MB / 0.4982 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04917/1.288, allocations: 22.2 MB / 0.6306 GB, free: 1.418 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3964/1.685, allocations: 74.06 MB / 0.7029 GB, free: 115.8 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02695/1.712, allocations: 38.1 MB / 0.7401 GB, free: 80.45 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01027/1.722, allocations: 6.507 MB / 0.7465 GB, free: 75.54 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02853/1.751, allocations: 18.23 MB / 0.7643 GB, free: 57.36 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.864e-05/1.751, allocations: 103.2 kB / 0.7644 GB, free: 57.25 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=581): time 7.634e-06/1.751, allocations: 0 / 0.7644 GB, free: 57.25 MB / 0.5138 GB Notification: Performance of matching and sorting (n=589): time 0.0868/1.838, allocations: 37.23 MB / 0.8008 GB, free: 19.74 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.198e-05/1.838, allocations: 137.8 kB / 0.8009 GB, free: 19.59 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008886/1.847, allocations: 6.072 MB / 0.8068 GB, free: 13.5 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.001393/1.848, allocations: 125.7 kB / 0.8069 GB, free: 13.37 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002937/1.851, allocations: 6.124 MB / 0.8129 GB, free: 7.211 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00251/1.854, allocations: 1.992 MB / 0.8149 GB, free: 5.238 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002486/1.856, allocations: 1.592 MB / 0.8164 GB, free: 3.633 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 4.99e-05/1.856, allocations: 305.1 kB / 0.8167 GB, free: 3.332 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005907/1.862, allocations: 4.228 MB / 0.8208 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01035/1.872, allocations: 7.168 MB / 0.8278 GB, free: 6.582 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3134/2.186, allocations: 12.04 MB / 0.8396 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001734/2.186, allocations: 29.34 kB / 0.8396 GB, free: 165.1 MB / 0.5294 GB Notification: Performance of matching and sorting (n=1051) (initialization): time 0.03494/2.221, allocations: 14.27 MB / 0.8536 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 7.717e-05/2.221, allocations: 50.34 kB / 0.8536 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001682/2.221, allocations: 96.28 kB / 0.8537 GB, free: 159.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006953/2.228, allocations: 2.769 MB / 0.8564 GB, free: 159.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007171/2.235, allocations: 1.697 MB / 0.8581 GB, free: 159 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0411/2.277, allocations: 31.6 MB / 0.8889 GB, free: 139.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008577/2.285, allocations: 438.3 kB / 0.8893 GB, free: 139.7 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00206/2.287, allocations: 386 kB / 0.8897 GB, free: 139.6 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 429 * Number of states: 0 () * Number of discrete variables: 12 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],booleanStepYDQS[3].y,booleanStepYDQS[2].y,booleanStepYDQS[1].y,booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[1].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (881): * Single equations (assignments): 874 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * 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): 6 systems {(1,8,100.0%), (9,19,33.3%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%), (24,96,32.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01226/2.3, allocations: 5.424 MB / 0.895 GB, free: 137 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002899/2.302, allocations: 0.641 MB / 0.8956 GB, free: 137 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02672/2.329, allocations: 11.56 MB / 0.9069 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.32e-05/2.329, allocations: 59.98 kB / 0.907 GB, free: 128.1 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001253/2.329, allocations: 32 kB / 0.907 GB, free: 128 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001829/2.33, allocations: 31.5 kB / 0.907 GB, free: 128 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0582/2.388, allocations: 24.41 MB / 0.9309 GB, free: 104.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.825e-05/2.388, allocations: 7.984 kB / 0.9309 GB, free: 104.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004845/2.393, allocations: 0.8699 MB / 0.9317 GB, free: 103.9 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007979/2.401, allocations: 2.82 MB / 0.9345 GB, free: 101.1 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001589/2.402, allocations: 140 kB / 0.9346 GB, free: 100.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03811/2.441, allocations: 34.58 MB / 0.9684 GB, free: 65.67 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.69e-06/2.441, allocations: 11.94 kB / 0.9684 GB, free: 65.66 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02767/2.468, allocations: 16.88 MB / 0.9849 GB, free: 48.53 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005527/2.474, allocations: 1.574 MB / 0.9864 GB, free: 46.93 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001929/2.476, allocations: 116 kB / 0.9865 GB, free: 46.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004197/2.48, allocations: 311.7 kB / 0.9868 GB, free: 46.52 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001483/2.482, allocations: 0.4971 MB / 0.9873 GB, free: 46.02 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003854/2.482, allocations: 172 kB / 0.9875 GB, free: 45.85 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.00736/2.489, allocations: 4.1 MB / 0.9915 GB, free: 41.75 MB / 0.5294 GB Notification: Performance of sort global known variables: time 4.1e-07/2.489, allocations: 0 / 0.9915 GB, free: 41.75 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.01514/2.504, allocations: 2.593 MB / 0.994 GB, free: 39.16 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (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,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (446): * Single equations (assignments): 438 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,1,100.0%), (24,96,34.7%), (1,1,100.0%), (1,8,100.0%), (9,19,33.3%), (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.002227/2.507, allocations: 308.3 kB / 0.9943 GB, free: 38.86 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.02087/2.528, allocations: 11.95 MB / 1.006 GB, free: 26.8 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.186e-05/2.528, allocations: 4.125 kB / 1.006 GB, free: 26.8 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0117/2.539, allocations: 7.013 MB / 1.013 GB, free: 19.68 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01014/2.55, allocations: 1.736 MB / 1.015 GB, free: 17.95 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.329/2.879, allocations: 26.09 MB / 1.04 GB, free: 148.7 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0177/2.896, allocations: 9.135 MB / 1.049 GB, free: 147.7 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.008107/2.905, allocations: 2.635 MB / 1.051 GB, free: 147.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001618/2.906, allocations: 467.3 kB / 1.052 GB, free: 147.5 MB / 0.5294 GB Notification: Performance of SimCode: time 8.52e-07/2.906, allocations: 0 / 1.052 GB, free: 147.5 MB / 0.5294 GB Notification: Performance of Templates: time 0.1799/3.086, allocations: 115.4 MB / 1.165 GB, free: 58.99 MB / 0.5294 GB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.sim & ./Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD -nls=newton -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe 2>&1)