Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.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.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001311/0.001311, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.631/1.631, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0004987/0.0004987, allocations: 8 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2898, allocations: 47.59 MB / 326.5 MB, free: 1.406 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.0236/0.3135, allocations: 20.84 MB / 347.3 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01683/0.3304, allocations: 6.143 MB / 353.5 MB, free: 8.445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005661/0.3361, allocations: 135.4 kB / 353.6 MB, free: 8.312 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0054/0.3415, allocations: 1.118 MB / 354.7 MB, free: 7.188 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0093/0.3509, allocations: 1.736 MB / 356.5 MB, free: 5.441 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005108/0.356, allocations: 0.9668 MB / 357.4 MB, free: 4.473 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01352/0.3695, allocations: 8.017 MB / 365.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007898/0.3775, allocations: 4.967 MB / 370.4 MB, free: 7.391 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005302/0.3828, allocations: 2.592 MB / 373 MB, free: 4.789 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007892/0.3907, allocations: 3.381 MB / 376.4 MB, free: 1.395 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002067/0.3928, allocations: 448 kB / 376.8 MB, free: 0.957 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003706/0.3965, allocations: 0.6326 MB / 377.4 MB, free: 332 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001848/0.3984, allocations: 1.631 MB / 379.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003443/0.4019, allocations: 1.521 MB / 380.6 MB, free: 13.15 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01672/0.4186, allocations: 11.64 MB / 392.2 MB, free: 1.488 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.408e-06/0.4187, allocations: 0 / 392.2 MB, free: 1.488 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.4187, allocations: 3.938 kB / 392.2 MB, free: 1.484 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0006114/0.4193, allocations: 0 / 392.2 MB, free: 1.484 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.02637/0.4457, allocations: 7.499 MB / 399.7 MB, free: 9.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.096e-05/0.4458, allocations: 8.031 kB / 399.7 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01134/0.4571, allocations: 1.669 MB / 401.4 MB, free: 8.203 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01357/0.4707, allocations: 4.316 MB / 405.7 MB, free: 3.812 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000801/0.4716, allocations: 0.5215 MB / 406.3 MB, free: 3.289 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00321/0.4749, allocations: 0.6795 MB / 406.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.031/0.5059, allocations: 9.4 MB / 416.3 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002158/0.5061, allocations: 8 kB / 416.3 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001942/0.5081, allocations: 280 kB / 416.6 MB, free: 8.863 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004487/0.5086, allocations: 338.2 kB / 416.9 MB, free: 8.531 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02224/0.5308, allocations: 8.028 MB / 425 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06431/0.5951, allocations: 28.93 MB / 453.9 MB, free: 2.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2287/0.8239, allocations: 16.57 MB / 470.5 MB, free: 87.47 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005112/0.829, allocations: 2.962 MB / 473.4 MB, free: 86.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01148/0.8405, allocations: 7.753 MB / 481.2 MB, free: 82.62 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.659e-05/0.8406, allocations: 68.62 kB / 481.3 MB, free: 82.56 MB / 382.1 MB Notification: Performance of pre-optimization done (n=259): time 3.837e-06/0.8406, allocations: 0 / 481.3 MB, free: 82.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=265): time 0.02039/0.861, allocations: 11.18 MB / 492.4 MB, free: 77.09 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.264e-05/0.8611, allocations: 79.72 kB / 492.5 MB, free: 77.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004266/0.8654, allocations: 3.347 MB / 495.9 MB, free: 74.98 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000204/0.8656, allocations: 69.7 kB / 495.9 MB, free: 74.9 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001532/0.8671, allocations: 3.041 MB / 499 MB, free: 71.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005449/0.8677, allocations: 0.9096 MB / 499.9 MB, free: 70.94 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001516/0.8679, allocations: 68 kB / 499.9 MB, free: 70.87 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001468/0.868, allocations: 441.2 kB / 0.4886 GB, free: 70.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001882/0.8699, allocations: 1.393 MB / 0.49 GB, free: 69.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002226/0.8721, allocations: 2.442 MB / 0.4924 GB, free: 66.14 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002247/0.8744, allocations: 1.84 MB / 0.4942 GB, free: 64.28 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.251e-05/0.8744, allocations: 8 kB / 0.4942 GB, free: 64.27 MB / 382.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.006403/0.8808, allocations: 4.705 MB / 0.4988 GB, free: 59.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.278e-05/0.8809, allocations: 16 kB / 0.4988 GB, free: 59.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.404e-05/0.8809, allocations: 36 kB / 0.4988 GB, free: 59.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008764/0.8818, allocations: 404.2 kB / 0.4992 GB, free: 59.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002621/0.8844, allocations: 0.8034 MB / 0.5 GB, free: 58.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004916/0.8894, allocations: 7.331 MB / 0.5072 GB, free: 50.37 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002871/0.8923, allocations: 167.8 kB / 0.5073 GB, free: 50.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002611/0.8925, allocations: 152 kB / 0.5075 GB, free: 50.05 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (411): * Single equations (assignments): 405 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003675/0.8962, allocations: 2.074 MB / 0.5095 GB, free: 47.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006444/0.8969, allocations: 363.6 kB / 0.5098 GB, free: 47.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006341/0.9032, allocations: 4.247 MB / 0.514 GB, free: 43.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.74e-05/0.9033, allocations: 28 kB / 0.514 GB, free: 43.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.432e-05/0.9033, allocations: 12 kB / 0.514 GB, free: 43.21 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.328e-05/0.9033, allocations: 15.94 kB / 0.514 GB, free: 43.19 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01423/0.9175, allocations: 9.882 MB / 0.5237 GB, free: 33.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.9176, allocations: 8.094 kB / 0.5237 GB, free: 33.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001624/0.9192, allocations: 403.4 kB / 0.5241 GB, free: 32.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00182/0.9211, allocations: 0.8579 MB / 0.5249 GB, free: 31.88 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001551/0.9212, allocations: 67.97 kB / 0.525 GB, free: 31.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01332/0.9346, allocations: 16.06 MB / 0.5407 GB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.9346, allocations: 7.938 kB / 0.5407 GB, free: 14.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008834/0.9434, allocations: 6.044 MB / 0.5466 GB, free: 8.586 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001806/0.9453, allocations: 0.7464 MB / 0.5473 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008044/0.9461, allocations: 56 kB / 0.5474 GB, free: 7.762 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001795/0.9479, allocations: 155.8 kB / 0.5475 GB, free: 7.609 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003859/0.9483, allocations: 201.7 kB / 0.5477 GB, free: 7.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001678/0.9484, allocations: 79.97 kB / 0.5478 GB, free: 7.332 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003414/0.9519, allocations: 2.263 MB / 0.55 GB, free: 5.082 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9519, allocations: 0 / 0.55 GB, free: 5.082 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003654/0.9555, allocations: 1.147 MB / 0.5511 GB, free: 3.938 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (198): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004205/0.956, allocations: 201.3 kB / 0.5513 GB, free: 3.734 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005445/0.9614, allocations: 4.123 MB / 0.5553 GB, free: 15.49 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.272e-06/0.9614, allocations: 4 kB / 0.5553 GB, free: 15.49 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004537/0.966, allocations: 2.862 MB / 0.5581 GB, free: 12.53 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004149/0.9701, allocations: 0.9684 MB / 0.5591 GB, free: 11.55 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02382/0.994, allocations: 14.54 MB / 0.5733 GB, free: 12.94 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00458/0.9986, allocations: 4.223 MB / 0.5774 GB, free: 8.688 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003269/1.002, allocations: 0.8326 MB / 0.5782 GB, free: 7.848 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007547/1.003, allocations: 259.3 kB / 0.5785 GB, free: 7.594 MB / 414.1 MB Notification: Performance of SimCode: time 9.92e-07/1.003, allocations: 0 / 0.5785 GB, free: 7.594 MB / 414.1 MB Notification: Performance of Templates: time 0.2757/1.278, allocations: 51.56 MB / 0.6288 GB, free: 150.3 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1)