Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001311/0.001311, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001522/0.001522, allocations: 192.4 kB / 16.13 MB, free: 6.668 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.418/1.418, allocations: 205.1 MB / 222 MB, free: 4.742 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.001377/0.001377, allocations: 43.94 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2435, allocations: 46.63 MB / 324.7 MB, free: 1.922 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.02466/0.2682, allocations: 23.36 MB / 348 MB, free: 12.71 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01546/0.2837, allocations: 6.472 MB / 354.5 MB, free: 6.219 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006752/0.2905, allocations: 139.4 kB / 354.7 MB, free: 6.082 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006231/0.2968, allocations: 1.333 MB / 356 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008262/0.3051, allocations: 1.911 MB / 357.9 MB, free: 2.82 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00478/0.3099, allocations: 1.323 MB / 359.2 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01313/0.323, allocations: 8.532 MB / 367.8 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01044/0.3335, allocations: 5.945 MB / 373.7 MB, free: 2.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006183/0.3397, allocations: 3.067 MB / 376.8 MB, free: 15.81 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007662/0.3474, allocations: 4.086 MB / 380.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003132/0.3506, allocations: 0.6367 MB / 381.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003953/0.3546, allocations: 0.8513 MB / 382.3 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002365/0.357, allocations: 1.951 MB / 384.3 MB, free: 8.266 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00699/0.364, allocations: 4.016 MB / 388.3 MB, free: 4.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01461/0.3786, allocations: 13.7 MB / 402 MB, free: 6.484 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.895e-06/0.3787, allocations: 0 / 402 MB, free: 6.484 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.105e-06/0.3787, allocations: 0 / 402 MB, free: 6.484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0006875/0.3794, allocations: 0 / 402 MB, free: 6.484 MB / 334.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.03481/0.4142, allocations: 8.825 MB / 410.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.565e-05/0.4143, allocations: 15.97 kB / 410.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01133/0.4256, allocations: 1.674 MB / 412.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01188/0.4375, allocations: 4.404 MB / 416.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007341/0.4383, allocations: 0.5221 MB / 417.5 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00371/0.442, allocations: 0.6872 MB / 418.1 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03498/0.477, allocations: 9.443 MB / 427.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004329/0.4775, allocations: 7.906 kB / 427.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003167/0.4807, allocations: 284 kB / 427.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004713/0.4812, allocations: 334.2 kB / 428.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02318/0.5044, allocations: 8.043 MB / 436.2 MB, free: 3.996 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.266/0.7704, allocations: 28.79 MB / 465 MB, free: 90.36 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01275/0.7832, allocations: 16.58 MB / 481.6 MB, free: 77.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004779/0.7881, allocations: 2.942 MB / 484.5 MB, free: 75.99 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01213/0.8002, allocations: 7.715 MB / 492.3 MB, free: 71.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.019e-05/0.8003, allocations: 63.8 kB / 492.3 MB, free: 71.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=259): time 6.683e-06/0.8003, allocations: 3.969 kB / 492.3 MB, free: 71.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=265): time 0.02251/0.8228, allocations: 11 MB / 0.4915 GB, free: 64.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.246e-05/0.8229, allocations: 82.59 kB / 0.4916 GB, free: 64.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004716/0.8277, allocations: 3.381 MB / 0.4949 GB, free: 61.92 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004442/0.8281, allocations: 69.7 kB / 0.495 GB, free: 61.85 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001475/0.8296, allocations: 3.034 MB / 0.4979 GB, free: 58.79 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000893/0.8305, allocations: 0.9196 MB / 0.4988 GB, free: 57.88 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008235/0.8314, allocations: 0.5896 MB / 0.4994 GB, free: 57.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.892e-05/0.8314, allocations: 301.1 kB / 0.4997 GB, free: 56.98 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001965/0.8334, allocations: 1.397 MB / 0.5011 GB, free: 55.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002511/0.8359, allocations: 2.433 MB / 0.5034 GB, free: 52.7 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00532/0.8413, allocations: 4.078 MB / 0.5074 GB, free: 48.14 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.014e-05/0.8413, allocations: 8 kB / 0.5074 GB, free: 48.13 MB / 382.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.008796/0.8501, allocations: 4.701 MB / 0.512 GB, free: 43.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.152e-05/0.8503, allocations: 20.16 kB / 0.512 GB, free: 43.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.545e-05/0.8504, allocations: 32 kB / 0.5121 GB, free: 43.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001191/0.8516, allocations: 407.2 kB / 0.5125 GB, free: 42.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003103/0.8547, allocations: 0.7878 MB / 0.5132 GB, free: 42.09 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005415/0.8601, allocations: 7.336 MB / 0.5204 GB, free: 34.22 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003753/0.8639, allocations: 167.8 kB / 0.5206 GB, free: 34.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005731/0.8645, allocations: 147.9 kB / 0.5207 GB, free: 33.91 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 (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.004514/0.869, allocations: 2.082 MB / 0.5227 GB, free: 31.82 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00154/0.8706, allocations: 371.6 kB / 0.5231 GB, free: 31.45 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00816/0.8788, allocations: 4.213 MB / 0.5272 GB, free: 27.12 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.589e-05/0.8788, allocations: 28 kB / 0.5272 GB, free: 27.1 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.731e-05/0.8789, allocations: 12 kB / 0.5272 GB, free: 27.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.94e-05/0.8789, allocations: 11.95 kB / 0.5272 GB, free: 27.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02153/0.9005, allocations: 9.877 MB / 0.5369 GB, free: 17.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.778e-05/0.9005, allocations: 4 kB / 0.5369 GB, free: 17.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001767/0.9023, allocations: 407.8 kB / 0.5373 GB, free: 16.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002097/0.9044, allocations: 0.8475 MB / 0.5381 GB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003105/0.9048, allocations: 71.91 kB / 0.5382 GB, free: 15.7 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01296/0.9177, allocations: 16.06 MB / 0.5539 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/0.9178, allocations: 12.06 kB / 0.5539 GB, free: 14.71 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01061/0.9284, allocations: 6.019 MB / 0.5597 GB, free: 8.496 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001897/0.9303, allocations: 0.7463 MB / 0.5605 GB, free: 7.727 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009528/0.9313, allocations: 63.98 kB / 0.5605 GB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00208/0.9334, allocations: 127.9 kB / 0.5607 GB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005215/0.9339, allocations: 205.6 kB / 0.5609 GB, free: 7.336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002139/0.9342, allocations: 83.97 kB / 0.5609 GB, free: 7.254 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004691/0.9389, allocations: 2.29 MB / 0.5632 GB, free: 4.977 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.9389, allocations: 0 / 0.5632 GB, free: 4.977 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005177/0.9441, allocations: 1.137 MB / 0.5643 GB, free: 3.84 MB / 398.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.0007076/0.9448, allocations: 207.9 kB / 0.5645 GB, free: 3.625 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007808/0.9526, allocations: 4.117 MB / 0.5685 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.059e-05/0.9527, allocations: 4.125 kB / 0.5685 GB, free: 15.39 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005104/0.9578, allocations: 2.843 MB / 0.5713 GB, free: 12.45 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006723/0.9645, allocations: 0.9525 MB / 0.5722 GB, free: 11.49 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03163/0.9962, allocations: 15.01 MB / 0.5869 GB, free: 12.42 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00756/1.004, allocations: 4.228 MB / 0.591 GB, free: 8.164 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003988/1.008, allocations: 0.8326 MB / 0.5918 GB, free: 7.324 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001149/1.009, allocations: 255.4 kB / 0.5921 GB, free: 7.074 MB / 430.1 MB Notification: Performance of SimCode: time 1.984e-06/1.009, allocations: 0 / 0.5921 GB, free: 7.074 MB / 430.1 MB Notification: Performance of Templates: time 0.2599/1.269, allocations: 53.47 MB / 0.6443 GB, free: 135.6 MB / 446.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1)