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.001272/0.001272, 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.001091/0.001091, allocations: 192.8 kB / 16.13 MB, free: 6.664 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.404/1.404, allocations: 205.1 MB / 222 MB, free: 4.773 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.001783/0.001783, allocations: 51.92 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2313/0.2331, allocations: 46.63 MB / 324.7 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.02354/0.2567, allocations: 23.36 MB / 348 MB, free: 12.71 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01496/0.2717, allocations: 6.461 MB / 354.5 MB, free: 6.227 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006264/0.278, allocations: 135.4 kB / 354.6 MB, free: 6.094 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005444/0.2835, allocations: 1.344 MB / 356 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009158/0.2927, allocations: 1.892 MB / 357.9 MB, free: 2.84 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004579/0.2973, allocations: 1.334 MB / 359.2 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01088/0.3082, allocations: 8.535 MB / 367.7 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007788/0.316, allocations: 5.945 MB / 373.7 MB, free: 2.895 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00455/0.3206, allocations: 3.067 MB / 376.8 MB, free: 15.81 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006042/0.3267, allocations: 4.082 MB / 380.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001623/0.3283, allocations: 0.6445 MB / 381.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002794/0.3311, allocations: 0.8552 MB / 382.3 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001689/0.3328, allocations: 1.947 MB / 384.3 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005288/0.3381, allocations: 4.016 MB / 388.3 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01338/0.3515, allocations: 13.71 MB / 402 MB, free: 6.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.3516, allocations: 0 / 402 MB, free: 6.477 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3516, allocations: 0 / 402 MB, free: 6.477 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004563/0.352, allocations: 0 / 402 MB, free: 6.477 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.02781/0.3798, allocations: 8.825 MB / 410.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.3799, allocations: 8.031 kB / 410.8 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009364/0.3893, allocations: 1.67 MB / 412.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009091/0.3984, allocations: 4.416 MB / 416.9 MB, free: 7.375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004613/0.3989, allocations: 0.5221 MB / 417.4 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00201/0.4009, allocations: 0.6794 MB / 418.1 MB, free: 6.172 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02167/0.4226, allocations: 9.443 MB / 427.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003014/0.4229, allocations: 11.91 kB / 427.6 MB, free: 12.65 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002477/0.4254, allocations: 288 kB / 427.9 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004636/0.4259, allocations: 330.2 kB / 428.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02087/0.4468, allocations: 8.051 MB / 436.2 MB, free: 3.984 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2457/0.6925, allocations: 28.78 MB / 465 MB, free: 90.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01335/0.7059, allocations: 16.58 MB / 481.6 MB, free: 76.96 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004936/0.7109, allocations: 2.938 MB / 484.5 MB, free: 75.87 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01349/0.7244, allocations: 7.727 MB / 492.3 MB, free: 71.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.609e-05/0.7245, allocations: 59.42 kB / 492.3 MB, free: 71.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=259): time 4.588e-06/0.7245, allocations: 3.969 kB / 492.3 MB, free: 71.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=265): time 0.02135/0.7458, allocations: 11 MB / 0.4915 GB, free: 64.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.464e-05/0.7459, allocations: 85.03 kB / 0.4916 GB, free: 64.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00713/0.7531, allocations: 3.375 MB / 0.4949 GB, free: 61.89 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005036/0.7536, allocations: 77.64 kB / 0.495 GB, free: 61.81 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001795/0.7554, allocations: 3.034 MB / 0.4979 GB, free: 58.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009686/0.7564, allocations: 0.9191 MB / 0.4988 GB, free: 57.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001632/0.758, allocations: 0.5857 MB / 0.4994 GB, free: 57.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.07e-05/0.7581, allocations: 301.1 kB / 0.4997 GB, free: 56.95 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002348/0.7605, allocations: 1.4 MB / 0.5011 GB, free: 55.55 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002486/0.763, allocations: 2.423 MB / 0.5034 GB, free: 52.67 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004932/0.7679, allocations: 4.09 MB / 0.5074 GB, free: 48.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.679e-05/0.768, allocations: 12 kB / 0.5074 GB, free: 48.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.007669/0.7757, allocations: 4.701 MB / 0.512 GB, free: 43.3 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.439e-05/0.7757, allocations: 20 kB / 0.512 GB, free: 43.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-05/0.7758, allocations: 32 kB / 0.5121 GB, free: 43.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009716/0.7768, allocations: 399.8 kB / 0.5125 GB, free: 42.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002752/0.7795, allocations: 0.7917 MB / 0.5132 GB, free: 42.05 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004928/0.7845, allocations: 7.333 MB / 0.5204 GB, free: 34.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002787/0.7873, allocations: 159.8 kB / 0.5205 GB, free: 34.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003982/0.7877, allocations: 152 kB / 0.5207 GB, free: 33.88 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.003289/0.791, allocations: 2.089 MB / 0.5227 GB, free: 31.78 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008491/0.7919, allocations: 363.6 kB / 0.5231 GB, free: 31.42 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006606/0.7985, allocations: 4.216 MB / 0.5272 GB, free: 27.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.625e-05/0.7985, allocations: 28 kB / 0.5272 GB, free: 27.06 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.891e-05/0.7986, allocations: 12 kB / 0.5272 GB, free: 27.05 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.034e-05/0.7986, allocations: 11.95 kB / 0.5272 GB, free: 27.04 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01546/0.814, allocations: 9.869 MB / 0.5369 GB, free: 17.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.487e-05/0.8141, allocations: 4 kB / 0.5369 GB, free: 17.01 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0017/0.8158, allocations: 403.8 kB / 0.5373 GB, free: 16.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002062/0.8179, allocations: 0.8584 MB / 0.5381 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002439/0.8182, allocations: 71.97 kB / 0.5382 GB, free: 15.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01342/0.8316, allocations: 16.06 MB / 0.5539 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.645e-06/0.8316, allocations: 4 kB / 0.5539 GB, free: 14.69 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01102/0.8427, allocations: 6.024 MB / 0.5597 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00228/0.845, allocations: 0.7464 MB / 0.5605 GB, free: 7.695 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001016/0.846, allocations: 59.98 kB / 0.5605 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002255/0.8483, allocations: 139.8 kB / 0.5607 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005608/0.8489, allocations: 205.7 kB / 0.5609 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001968/0.8491, allocations: 79.97 kB / 0.5609 GB, free: 7.219 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004013/0.8531, allocations: 2.29 MB / 0.5632 GB, free: 4.941 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.8531, allocations: 0 / 0.5632 GB, free: 4.941 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00431/0.8574, allocations: 1.141 MB / 0.5643 GB, free: 3.801 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.0005652/0.858, allocations: 207.7 kB / 0.5645 GB, free: 3.586 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007156/0.8652, allocations: 4.113 MB / 0.5685 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.064e-06/0.8652, allocations: 8.125 kB / 0.5685 GB, free: 15.35 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004684/0.8699, allocations: 2.847 MB / 0.5713 GB, free: 12.41 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005571/0.8755, allocations: 0.9488 MB / 0.5722 GB, free: 11.45 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02619/0.9017, allocations: 15.01 MB / 0.5869 GB, free: 12.38 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005546/0.9073, allocations: 4.221 MB / 0.591 GB, free: 8.129 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003423/0.9108, allocations: 0.8326 MB / 0.5918 GB, free: 7.289 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009687/0.9118, allocations: 255.4 kB / 0.5921 GB, free: 7.039 MB / 430.1 MB Notification: Performance of SimCode: time 6.21e-07/0.9118, allocations: 0 / 0.5921 GB, free: 7.039 MB / 430.1 MB Notification: Performance of Templates: time 0.2477/1.159, allocations: 53.46 MB / 0.6443 GB, free: 135.6 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)