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.001089/0.001089, allocations: 112.3 kB / 17.06 MB, free: 5.969 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.001008/0.001008, allocations: 200 kB / 18.01 MB, free: 5.051 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.344/1.344, allocations: 205.1 MB / 223.9 MB, free: 12.22 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.001259/0.001259, allocations: 52.34 kB / 327.9 MB, free: 3.273 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09358/0.09484, allocations: 46.62 MB / 374.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.2095/0.3044, allocations: 23.71 MB / 398.2 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01906/0.3236, allocations: 6.552 MB / 404.8 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006038/0.3296, allocations: 141.4 kB / 404.9 MB, free: 9.512 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004811/0.3345, allocations: 1.573 MB / 406.5 MB, free: 8.648 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007895/0.3424, allocations: 2.116 MB / 408.6 MB, free: 7.219 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004366/0.3468, allocations: 1.449 MB / 410 MB, free: 6.285 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01128/0.3581, allocations: 8.078 MB / 418.1 MB, free: 1.387 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01116/0.3693, allocations: 7.159 MB / 425.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006902/0.3762, allocations: 3.805 MB / 429.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008369/0.3846, allocations: 4.421 MB / 433.5 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003935/0.3886, allocations: 1.094 MB / 434.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005571/0.3941, allocations: 1.308 MB / 435.9 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003561/0.3977, allocations: 2.435 MB / 438.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007992/0.4057, allocations: 4.513 MB / 442.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01828/0.424, allocations: 14.22 MB / 457.1 MB, free: 12.84 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.424, allocations: 4 kB / 457.1 MB, free: 12.84 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.4241, allocations: 0 / 457.1 MB, free: 12.84 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004442/0.4245, allocations: 0 / 457.1 MB, free: 12.84 MB / 382.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.02739/0.4519, allocations: 9.022 MB / 466.1 MB, free: 3.715 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/0.452, allocations: 15.89 kB / 466.1 MB, free: 3.699 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0105/0.4625, allocations: 1.702 MB / 467.8 MB, free: 1.992 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01031/0.4728, allocations: 4.575 MB / 472.4 MB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000504/0.4734, allocations: 0.5063 MB / 472.9 MB, free: 12.84 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002403/0.4758, allocations: 0.6877 MB / 473.6 MB, free: 12.15 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02379/0.4996, allocations: 9.443 MB / 483 MB, free: 2.641 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002644/0.4999, allocations: 11.89 kB / 483 MB, free: 2.629 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001947/0.5019, allocations: 284 kB / 483.3 MB, free: 2.352 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000381/0.5023, allocations: 338.2 kB / 483.7 MB, free: 2.02 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02262/0.5249, allocations: 8.051 MB / 491.7 MB, free: 9.953 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06326/0.5882, allocations: 28.49 MB / 0.508 GB, free: 12.84 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01755/0.6058, allocations: 16.6 MB / 0.5242 GB, free: 10.36 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005109/0.6109, allocations: 2.916 MB / 0.5271 GB, free: 7.43 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01677/0.6277, allocations: 7.699 MB / 0.5346 GB, free: 15.57 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.142e-05/0.6278, allocations: 60.61 kB / 0.5346 GB, free: 15.5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=259): time 5.601e-06/0.6279, allocations: 0 / 0.5346 GB, free: 15.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=265): time 0.02505/0.6529, allocations: 11.1 MB / 0.5455 GB, free: 4.078 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.371e-05/0.653, allocations: 77.5 kB / 0.5455 GB, free: 3.988 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008006/0.661, allocations: 3.381 MB / 0.5489 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002408/0.6613, allocations: 69.7 kB / 0.5489 GB, free: 0.5391 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.4507/1.112, allocations: 3.119 MB / 0.552 GB, free: 145.2 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001133/1.113, allocations: 0.9565 MB / 0.5529 GB, free: 144.6 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001008/1.114, allocations: 0.5955 MB / 0.5535 GB, free: 144.6 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 5.292e-05/1.114, allocations: 307 kB / 0.5538 GB, free: 144.3 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00257/1.117, allocations: 1.393 MB / 0.5551 GB, free: 143.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002733/1.12, allocations: 2.432 MB / 0.5575 GB, free: 142 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005296/1.125, allocations: 4.076 MB / 0.5615 GB, free: 139.4 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.223e-05/1.125, allocations: 9.156 kB / 0.5615 GB, free: 139.4 MB / 478.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.008471/1.133, allocations: 4.715 MB / 0.5661 GB, free: 137.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.498e-05/1.133, allocations: 18.5 kB / 0.5661 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.759e-05/1.134, allocations: 32.88 kB / 0.5662 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009764/1.135, allocations: 398.8 kB / 0.5665 GB, free: 137.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002929/1.137, allocations: 0.7909 MB / 0.5673 GB, free: 137.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005913/1.143, allocations: 7.977 MB / 0.5751 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003034/1.146, allocations: 155.4 kB / 0.5752 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003625/1.147, allocations: 154.4 kB / 0.5754 GB, free: 130 MB / 478.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.004353/1.151, allocations: 2.076 MB / 0.5774 GB, free: 128.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009042/1.152, allocations: 384.9 kB / 0.5778 GB, free: 128.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007085/1.159, allocations: 4.22 MB / 0.5819 GB, free: 126.8 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.734e-05/1.159, allocations: 26.25 kB / 0.5819 GB, free: 126.8 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.871e-05/1.159, allocations: 15.09 kB / 0.5819 GB, free: 126.8 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-05/1.159, allocations: 15.47 kB / 0.582 GB, free: 126.8 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.016/1.175, allocations: 9.869 MB / 0.5916 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/1.175, allocations: 3.906 kB / 0.5916 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001599/1.177, allocations: 410.3 kB / 0.592 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001856/1.179, allocations: 0.8551 MB / 0.5928 GB, free: 122.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001923/1.179, allocations: 71.05 kB / 0.5929 GB, free: 122.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01349/1.193, allocations: 17.52 MB / 0.61 GB, free: 106.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/1.193, allocations: 4 kB / 0.61 GB, free: 106.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009192/1.202, allocations: 6.047 MB / 0.6159 GB, free: 100.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00202/1.204, allocations: 0.7638 MB / 0.6167 GB, free: 99.37 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001017/1.205, allocations: 63.98 kB / 0.6167 GB, free: 99.31 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002269/1.207, allocations: 131.9 kB / 0.6168 GB, free: 99.18 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004948/1.208, allocations: 205.7 kB / 0.617 GB, free: 98.98 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001854/1.208, allocations: 75.97 kB / 0.6171 GB, free: 98.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004248/1.212, allocations: 2.298 MB / 0.6194 GB, free: 96.62 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.31e-07/1.212, allocations: 0 / 0.6194 GB, free: 96.62 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005584/1.218, allocations: 1.141 MB / 0.6205 GB, free: 95.48 MB / 478.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.0005656/1.218, allocations: 217.1 kB / 0.6207 GB, free: 95.28 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006357/1.225, allocations: 4.128 MB / 0.6247 GB, free: 91.03 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.734e-06/1.225, allocations: 0 / 0.6247 GB, free: 91.03 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004051/1.229, allocations: 2.865 MB / 0.6275 GB, free: 88.07 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005996/1.235, allocations: 0.9953 MB / 0.6285 GB, free: 87.08 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02251/1.257, allocations: 12.19 MB / 0.6404 GB, free: 74.84 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00536/1.263, allocations: 4.221 MB / 0.6445 GB, free: 70.59 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003252/1.266, allocations: 0.8365 MB / 0.6453 GB, free: 69.75 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001052/1.267, allocations: 255.4 kB / 0.6456 GB, free: 69.5 MB / 478.1 MB Notification: Performance of SimCode: time 9.92e-07/1.267, allocations: 0 / 0.6456 GB, free: 69.5 MB / 478.1 MB Notification: Performance of Templates: time 0.08434/1.351, allocations: 53.34 MB / 0.6977 GB, free: 16.14 MB / 478.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)