Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.001285/0.001285, allocations: 108.7 kB / 16.51 MB, free: 6.707 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.001216/0.001216, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.365/1.365, allocations: 205.1 MB / 223.3 MB, free: 12.49 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.001113/0.001113, allocations: 47.94 kB / 279.3 MB, free: 3.574 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09688/0.09801, allocations: 46.62 MB / 326 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.02509/0.1232, allocations: 23.36 MB / 349.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01716/0.1404, allocations: 6.464 MB / 355.8 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005884/0.1463, allocations: 139.4 kB / 355.9 MB, free: 6.781 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005813/0.1522, allocations: 1.34 MB / 357.3 MB, free: 5.434 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0104/0.1626, allocations: 1.9 MB / 359.2 MB, free: 3.523 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005681/0.1683, allocations: 1.326 MB / 360.5 MB, free: 2.195 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01338/0.1817, allocations: 8.535 MB / 369 MB, free: 9.617 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01095/0.1927, allocations: 5.945 MB / 375 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006632/0.1994, allocations: 3.075 MB / 378 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1978/0.3972, allocations: 4.066 MB / 382.1 MB, free: 18.31 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003907/0.4012, allocations: 0.6375 MB / 382.8 MB, free: 18.31 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006769/0.408, allocations: 0.8542 MB / 383.6 MB, free: 18.31 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005353/0.4134, allocations: 1.958 MB / 385.6 MB, free: 18.2 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01305/0.4265, allocations: 4.018 MB / 389.6 MB, free: 17.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02364/0.4501, allocations: 13.71 MB / 403.3 MB, free: 12.14 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.927e-06/0.4502, allocations: 0 / 403.3 MB, free: 12.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.026e-06/0.4502, allocations: 0 / 403.3 MB, free: 12.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0007421/0.451, allocations: 0 / 403.3 MB, free: 12.14 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.03201/0.483, allocations: 8.814 MB / 412.1 MB, free: 6.449 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/0.4831, allocations: 10.56 kB / 412.1 MB, free: 6.449 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01096/0.494, allocations: 1.672 MB / 413.8 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01308/0.5072, allocations: 4.417 MB / 418.2 MB, free: 2.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000898/0.5081, allocations: 0.522 MB / 418.7 MB, free: 2.461 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004213/0.5124, allocations: 0.6764 MB / 419.4 MB, free: 2.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03503/0.5474, allocations: 9.45 MB / 428.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003899/0.5478, allocations: 8 kB / 428.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002641/0.5505, allocations: 279 kB / 429.1 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003823/0.5509, allocations: 338 kB / 429.5 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02317/0.5741, allocations: 8.046 MB / 437.5 MB, free: 2.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06895/0.6431, allocations: 28.81 MB / 466.3 MB, free: 5.324 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01778/0.6609, allocations: 16.57 MB / 482.9 MB, free: 2.879 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006533/0.6675, allocations: 2.939 MB / 485.8 MB, free: 15.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01905/0.6866, allocations: 7.725 MB / 493.6 MB, free: 8.164 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.628e-05/0.6867, allocations: 64.61 kB / 493.6 MB, free: 8.09 MB / 398.1 MB Notification: Performance of pre-optimization done (n=259): time 5.55e-06/0.6867, allocations: 0 / 493.6 MB, free: 8.09 MB / 398.1 MB Notification: Performance of matching and sorting (n=265): time 0.02781/0.7145, allocations: 10.98 MB / 0.4928 GB, free: 12.83 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.158e-05/0.7146, allocations: 81.5 kB / 0.4928 GB, free: 12.74 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008588/0.7232, allocations: 3.388 MB / 0.4962 GB, free: 9.355 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000711/0.7239, allocations: 65.7 kB / 0.4962 GB, free: 9.285 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002681/0.7266, allocations: 3.037 MB / 0.4992 GB, free: 6.227 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001446/0.7281, allocations: 0.9165 MB / 0.5001 GB, free: 5.316 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001981/0.7301, allocations: 0.5973 MB / 0.5007 GB, free: 4.711 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.7302, allocations: 305.1 kB / 0.501 GB, free: 4.41 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002764/0.733, allocations: 1.397 MB / 0.5023 GB, free: 3.012 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003449/0.7365, allocations: 2.425 MB / 0.5047 GB, free: 148 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006502/0.743, allocations: 4.079 MB / 0.5087 GB, free: 11.71 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.948e-05/0.743, allocations: 8 kB / 0.5087 GB, free: 11.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.009059/0.7521, allocations: 4.695 MB / 0.5133 GB, free: 7.133 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.592e-05/0.7522, allocations: 31.2 kB / 0.5133 GB, free: 7.105 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.987e-05/0.7523, allocations: 36.66 kB / 0.5133 GB, free: 7.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/0.7534, allocations: 388.9 kB / 0.5137 GB, free: 6.672 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003301/0.7567, allocations: 0.7929 MB / 0.5145 GB, free: 5.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00684/0.7635, allocations: 7.345 MB / 0.5216 GB, free: 14.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003634/0.7672, allocations: 160 kB / 0.5218 GB, free: 13.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007582/0.768, allocations: 152 kB / 0.5219 GB, free: 13.8 MB / 446.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 (not torn): 2 * Torn equation systems: 4 * 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%), (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): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (3,14,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00719/0.7752, allocations: 2.074 MB / 0.524 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001504/0.7767, allocations: 374.2 kB / 0.5243 GB, free: 11.39 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009908/0.7866, allocations: 4.214 MB / 0.5284 GB, free: 7.105 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.242e-05/0.7867, allocations: 28 kB / 0.5285 GB, free: 7.078 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.305e-05/0.7867, allocations: 15.94 kB / 0.5285 GB, free: 7.062 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.244e-05/0.7868, allocations: 11.95 kB / 0.5285 GB, free: 7.051 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2335/1.02, allocations: 9.868 MB / 0.5381 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.117e-05/1.02, allocations: 1.781 kB / 0.5381 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001829/1.022, allocations: 403.9 kB / 0.5385 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002318/1.025, allocations: 0.8491 MB / 0.5393 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002465/1.025, allocations: 72.75 kB / 0.5394 GB, free: 132.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01669/1.042, allocations: 16.06 MB / 0.5551 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/1.042, allocations: 6.875 kB / 0.5551 GB, free: 123.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009939/1.051, allocations: 6.028 MB / 0.561 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001999/1.054, allocations: 0.7458 MB / 0.5617 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006382/1.054, allocations: 65.28 kB / 0.5618 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001645/1.056, allocations: 131.4 kB / 0.5619 GB, free: 121 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005504/1.056, allocations: 209.7 kB / 0.5621 GB, free: 120.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001551/1.057, allocations: 80.94 kB / 0.5622 GB, free: 120.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00336/1.06, allocations: 2.291 MB / 0.5644 GB, free: 120.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.81e-07/1.06, allocations: 3.719 kB / 0.5644 GB, free: 120.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004119/1.064, allocations: 1.139 MB / 0.5655 GB, free: 120 MB / 446.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 (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,5,100.0%), (4,33,93.8%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,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.0004458/1.065, allocations: 209.4 kB / 0.5657 GB, free: 119.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005434/1.07, allocations: 4.108 MB / 0.5698 GB, free: 118 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/1.07, allocations: 3.5 kB / 0.5698 GB, free: 118 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003567/1.074, allocations: 2.846 MB / 0.5725 GB, free: 116.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004568/1.078, allocations: 0.9555 MB / 0.5735 GB, free: 116.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02017/1.098, allocations: 15.01 MB / 0.5881 GB, free: 102.1 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003182/1.102, allocations: 4.226 MB / 0.5923 GB, free: 98.86 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003256/1.105, allocations: 0.8327 MB / 0.5931 GB, free: 98.11 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006866/1.106, allocations: 251.4 kB / 0.5933 GB, free: 97.87 MB / 446.1 MB Notification: Performance of SimCode: time 8.52e-07/1.106, allocations: 4 kB / 0.5933 GB, free: 97.86 MB / 446.1 MB Notification: Performance of Templates: time 0.07827/1.184, allocations: 53.47 MB / 0.6455 GB, free: 44.44 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1)