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.001184/0.001184, allocations: 106.9 kB / 16.92 MB, free: 5.84 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.001178/0.001178, allocations: 191.5 kB / 17.85 MB, free: 5.16 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.329/1.329, allocations: 205.1 MB / 223.7 MB, free: 12.3 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.001256/0.001256, allocations: 55.92 kB / 280 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09227/0.09354, allocations: 46.62 MB / 326.6 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.02593/0.1195, allocations: 23.72 MB / 350.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01447/0.134, allocations: 6.538 MB / 356.9 MB, free: 6.078 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004287/0.1384, allocations: 147.4 kB / 357 MB, free: 5.934 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005757/0.1442, allocations: 1.572 MB / 358.6 MB, free: 4.352 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009524/0.1538, allocations: 2.112 MB / 360.7 MB, free: 2.227 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004958/0.1588, allocations: 1.453 MB / 362.2 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01324/0.172, allocations: 8.037 MB / 370.2 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00996/0.182, allocations: 7.161 MB / 377.4 MB, free: 1.445 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2033/0.3853, allocations: 3.792 MB / 381.2 MB, free: 18.13 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01202/0.3974, allocations: 4.41 MB / 385.6 MB, free: 17.76 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005985/0.4035, allocations: 1.099 MB / 386.7 MB, free: 17.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006943/0.4104, allocations: 1.311 MB / 388 MB, free: 17.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004447/0.4149, allocations: 2.436 MB / 390.4 MB, free: 17.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009429/0.4243, allocations: 4.515 MB / 394.9 MB, free: 16.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01456/0.4389, allocations: 14.07 MB / 409 MB, free: 9.004 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.293e-06/0.439, allocations: 0.6562 kB / 409 MB, free: 9.004 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.439, allocations: 0 / 409 MB, free: 9.004 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000454/0.4395, allocations: 0.5 kB / 409 MB, free: 9.004 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.02443/0.4639, allocations: 8.839 MB / 417.8 MB, free: 3.289 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.464, allocations: 15.36 kB / 417.9 MB, free: 3.285 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00838/0.4724, allocations: 1.673 MB / 419.5 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0089/0.4813, allocations: 4.503 MB / 424 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004914/0.4818, allocations: 0.5138 MB / 424.5 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002181/0.484, allocations: 0.6833 MB / 425.2 MB, free: 13.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02478/0.5088, allocations: 9.444 MB / 434.7 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002161/0.5091, allocations: 11.45 kB / 434.7 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001189/0.5103, allocations: 286.9 kB / 435 MB, free: 4.199 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004285/0.5107, allocations: 334.2 kB / 435.3 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01863/0.5294, allocations: 8.049 MB / 443.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0599/0.5893, allocations: 28.79 MB / 472.1 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01691/0.6063, allocations: 16.58 MB / 488.7 MB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005279/0.6116, allocations: 2.932 MB / 491.6 MB, free: 9.648 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01424/0.6259, allocations: 7.735 MB / 499.4 MB, free: 1.871 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.603e-05/0.626, allocations: 67.52 kB / 499.4 MB, free: 1.797 MB / 398.1 MB Notification: Performance of pre-optimization done (n=259): time 5.731e-06/0.626, allocations: 0 / 499.4 MB, free: 1.797 MB / 398.1 MB Notification: Performance of matching and sorting (n=265): time 0.02487/0.6509, allocations: 10.98 MB / 0.4985 GB, free: 6.535 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.417e-05/0.651, allocations: 81.44 kB / 0.4985 GB, free: 6.441 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00669/0.6577, allocations: 3.38 MB / 0.5018 GB, free: 3.07 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000653/0.6584, allocations: 65.7 kB / 0.5019 GB, free: 3 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002689/0.6611, allocations: 3.038 MB / 0.5049 GB, free: 15.94 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001321/0.6624, allocations: 0.9179 MB / 0.5058 GB, free: 15.03 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001025/0.6635, allocations: 0.5974 MB / 0.5064 GB, free: 14.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.6637, allocations: 309.1 kB / 0.5066 GB, free: 14.12 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002677/0.6664, allocations: 1.389 MB / 0.508 GB, free: 12.73 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003573/0.67, allocations: 2.424 MB / 0.5104 GB, free: 9.863 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005995/0.676, allocations: 4.087 MB / 0.5144 GB, free: 5.426 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.875e-05/0.676, allocations: 8 kB / 0.5144 GB, free: 5.418 MB / 430.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.008518/0.6845, allocations: 4.699 MB / 0.519 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.586e-05/0.6846, allocations: 20 kB / 0.519 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.823e-05/0.6847, allocations: 35.94 kB / 0.519 GB, free: 0.7852 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009853/0.6857, allocations: 397.2 kB / 0.5194 GB, free: 388 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002908/0.6886, allocations: 0.7967 MB / 0.5202 GB, free: 15.63 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007225/0.6958, allocations: 7.966 MB / 0.5279 GB, free: 7.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002836/0.6987, allocations: 155.9 kB / 0.5281 GB, free: 7.008 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002388/0.6989, allocations: 152 kB / 0.5282 GB, free: 6.859 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.003659/0.7026, allocations: 2.07 MB / 0.5303 GB, free: 4.828 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007027/0.7033, allocations: 375.4 kB / 0.5306 GB, free: 4.457 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007474/0.7108, allocations: 4.22 MB / 0.5347 GB, free: 168 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.388e-05/0.7108, allocations: 28 kB / 0.5348 GB, free: 140 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.087e-05/0.7109, allocations: 16 kB / 0.5348 GB, free: 124 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-05/0.7109, allocations: 15.89 kB / 0.5348 GB, free: 108 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2426/0.9535, allocations: 9.86 MB / 0.5444 GB, free: 152.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.163e-05/0.9536, allocations: 4.688 kB / 0.5444 GB, free: 152.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00189/0.9555, allocations: 403.1 kB / 0.5448 GB, free: 152.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002442/0.9579, allocations: 0.8663 MB / 0.5457 GB, free: 152 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000277/0.9582, allocations: 68.08 kB / 0.5457 GB, free: 152 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01662/0.9749, allocations: 17.52 MB / 0.5628 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.049e-05/0.9749, allocations: 10.14 kB / 0.5628 GB, free: 138.1 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01047/0.9854, allocations: 6.028 MB / 0.5687 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002342/0.9878, allocations: 0.7422 MB / 0.5695 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007263/0.9885, allocations: 68.81 kB / 0.5695 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001832/0.9904, allocations: 132.1 kB / 0.5696 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006277/0.991, allocations: 203.5 kB / 0.5698 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000163/0.9912, allocations: 77.73 kB / 0.5699 GB, free: 134.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00399/0.9952, allocations: 2.293 MB / 0.5722 GB, free: 134 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.9952, allocations: 0 / 0.5722 GB, free: 134 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005834/1.001, allocations: 1.145 MB / 0.5733 GB, free: 133.9 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.0006265/1.002, allocations: 208.3 kB / 0.5735 GB, free: 133.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01222/1.014, allocations: 5.74 MB / 0.5791 GB, free: 130.7 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.393e-06/1.014, allocations: 0 / 0.5791 GB, free: 130.7 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004357/1.018, allocations: 2.853 MB / 0.5819 GB, free: 128 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005425/1.024, allocations: 1.002 MB / 0.5828 GB, free: 127.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02161/1.045, allocations: 12.14 MB / 0.5947 GB, free: 116 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003472/1.049, allocations: 4.224 MB / 0.5988 GB, free: 111.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003385/1.052, allocations: 0.8326 MB / 0.5996 GB, free: 111 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007053/1.053, allocations: 255.4 kB / 0.5999 GB, free: 110.8 MB / 446.1 MB Notification: Performance of SimCode: time 5.91e-07/1.053, allocations: 0 / 0.5999 GB, free: 110.8 MB / 446.1 MB Notification: Performance of Templates: time 0.09362/1.147, allocations: 55.58 MB / 0.6542 GB, free: 55.13 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)