Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.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.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008331/0.008331, allocations: 99.59 kB / 15.73 MB, free: 6.043 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.001509/0.001509, allocations: 191.7 kB / 16.67 MB, free: 5.957 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.352/1.352, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.0013/0.0013, allocations: 62 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07919/0.0805, allocations: 46.61 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02112/0.1017, allocations: 21.68 MB / 394.9 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01155/0.1133, allocations: 6.438 MB / 401.3 MB, free: 5.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00333/0.1167, allocations: 123.4 kB / 401.4 MB, free: 4.941 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004474/0.1211, allocations: 1.541 MB / 403 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007626/0.1288, allocations: 2.14 MB / 405.1 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004135/0.133, allocations: 1.303 MB / 406.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009667/0.1426, allocations: 6.527 MB / 412.9 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008306/0.151, allocations: 5.511 MB / 418.4 MB, free: 3.781 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005134/0.1561, allocations: 2.998 MB / 421.4 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006139/0.1623, allocations: 3.565 MB / 425 MB, free: 13.19 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002312/0.1647, allocations: 0.8164 MB / 425.8 MB, free: 12.38 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003449/0.1681, allocations: 1.109 MB / 426.9 MB, free: 11.27 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002991/0.1711, allocations: 2.022 MB / 429 MB, free: 9.242 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006255/0.1774, allocations: 3.536 MB / 432.5 MB, free: 5.691 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0149/0.1923, allocations: 10.78 MB / 443.3 MB, free: 10.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.506e-06/0.1924, allocations: 3.844 kB / 443.3 MB, free: 10.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1924, allocations: 0 / 443.3 MB, free: 10.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004922/0.1929, allocations: 4 kB / 443.3 MB, free: 10.87 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02615/0.2191, allocations: 6.922 MB / 450.2 MB, free: 3.867 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.326e-05/0.2192, allocations: 8.031 kB / 450.2 MB, free: 3.859 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006754/0.2259, allocations: 1.055 MB / 451.3 MB, free: 2.797 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2012/0.4272, allocations: 3.513 MB / 454.8 MB, free: 63.61 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004812/0.4277, allocations: 403.6 kB / 455.2 MB, free: 63.6 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001709/0.4294, allocations: 0.5309 MB / 455.7 MB, free: 63.6 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01448/0.4439, allocations: 7.048 MB / 462.7 MB, free: 61.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001202/0.4441, allocations: 15.27 kB / 462.8 MB, free: 61.02 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004592/0.4445, allocations: 218.2 kB / 463 MB, free: 60.86 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002527/0.4448, allocations: 266.2 kB / 463.2 MB, free: 60.83 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009999/0.4548, allocations: 5.936 MB / 469.2 MB, free: 58.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03404/0.4889, allocations: 22.16 MB / 491.3 MB, free: 41.53 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006605/0.4955, allocations: 8.29 MB / 499.6 MB, free: 32.37 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00289/0.4984, allocations: 2.157 MB / 0.49 GB, free: 30.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009798/0.5082, allocations: 6.167 MB / 0.496 GB, free: 24.01 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.074e-05/0.5083, allocations: 64.48 kB / 0.4961 GB, free: 23.94 MB / 382.1 MB Notification: Performance of pre-optimization done (n=220): time 4.368e-06/0.5083, allocations: 0 / 0.4961 GB, free: 23.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=240): time 0.02132/0.5297, allocations: 11.14 MB / 0.507 GB, free: 12.55 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.5298, allocations: 81.41 kB / 0.5071 GB, free: 12.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004787/0.5345, allocations: 3.148 MB / 0.5101 GB, free: 9.312 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002468/0.5348, allocations: 65.7 kB / 0.5102 GB, free: 9.242 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001307/0.5361, allocations: 2.505 MB / 0.5126 GB, free: 6.719 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006586/0.5368, allocations: 0.822 MB / 0.5134 GB, free: 5.902 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001009/0.5378, allocations: 0.5614 MB / 0.514 GB, free: 5.332 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.762e-05/0.5379, allocations: 309.1 kB / 0.5143 GB, free: 5.027 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002088/0.54, allocations: 1.334 MB / 0.5156 GB, free: 3.691 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00251/0.5425, allocations: 2.338 MB / 0.5179 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005633/0.5481, allocations: 3.92 MB / 0.5217 GB, free: 12.51 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.291e-05/0.5482, allocations: 8 kB / 0.5217 GB, free: 12.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.008273/0.5565, allocations: 4.709 MB / 0.5263 GB, free: 7.684 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.183e-05/0.5565, allocations: 16 kB / 0.5263 GB, free: 7.668 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.643e-05/0.5566, allocations: 39.94 kB / 0.5264 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001427/0.558, allocations: 0.5278 MB / 0.5269 GB, free: 7.082 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003006/0.5611, allocations: 0.7449 MB / 0.5276 GB, free: 6.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009554/0.5707, allocations: 10.29 MB / 0.5376 GB, free: 11.35 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003224/0.5739, allocations: 183.7 kB / 0.5378 GB, free: 11.17 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000516/0.5744, allocations: 144 kB / 0.538 GB, free: 11.03 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * 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): 5 systems {(3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003121/0.5776, allocations: 1.567 MB / 0.5395 GB, free: 9.453 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001181/0.5788, allocations: 343.8 kB / 0.5398 GB, free: 9.113 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007996/0.5868, allocations: 4.061 MB / 0.5438 GB, free: 4.949 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-05/0.5868, allocations: 24 kB / 0.5438 GB, free: 4.926 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.712e-05/0.5869, allocations: 8 kB / 0.5438 GB, free: 4.918 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-05/0.5869, allocations: 11.95 kB / 0.5438 GB, free: 4.906 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01879/0.6057, allocations: 8.958 MB / 0.5526 GB, free: 11.81 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.871e-05/0.6058, allocations: 8.094 kB / 0.5526 GB, free: 11.8 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001977/0.6078, allocations: 411.4 kB / 0.553 GB, free: 11.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00215/0.6099, allocations: 0.7364 MB / 0.5537 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002362/0.6102, allocations: 71.89 kB / 0.5538 GB, free: 10.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01625/0.6264, allocations: 16.73 MB / 0.5701 GB, free: 8.734 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.002e-06/0.6265, allocations: 11.88 kB / 0.5701 GB, free: 8.723 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01063/0.6371, allocations: 5.845 MB / 0.5758 GB, free: 2.711 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001817/0.639, allocations: 0.692 MB / 0.5765 GB, free: 1.996 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009561/0.64, allocations: 59.98 kB / 0.5765 GB, free: 1.938 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002229/0.6422, allocations: 135.9 kB / 0.5767 GB, free: 1.805 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004988/0.6427, allocations: 185.6 kB / 0.5769 GB, free: 1.621 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001978/0.6429, allocations: 71.97 kB / 0.5769 GB, free: 1.551 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004284/0.6472, allocations: 2.13 MB / 0.579 GB, free: 15.43 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6472, allocations: 4 kB / 0.579 GB, free: 15.43 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004355/0.6516, allocations: 0.9872 MB / 0.58 GB, free: 14.44 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * 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 (201): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007889/0.6524, allocations: 248.4 kB / 0.5802 GB, free: 14.19 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00753/0.66, allocations: 4.15 MB / 0.5843 GB, free: 9.945 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.345e-06/0.66, allocations: 4.062 kB / 0.5843 GB, free: 9.941 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004779/0.6648, allocations: 2.739 MB / 0.5869 GB, free: 7.109 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005782/0.6706, allocations: 0.957 MB / 0.5879 GB, free: 6.152 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01928/0.6899, allocations: 9.929 MB / 0.5976 GB, free: 12.15 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005255/0.6952, allocations: 3.404 MB / 0.6009 GB, free: 8.711 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00345/0.6987, allocations: 0.8112 MB / 0.6017 GB, free: 7.898 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00106/0.6998, allocations: 243.4 kB / 0.6019 GB, free: 7.66 MB / 478.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6998, allocations: 0 / 0.6019 GB, free: 7.66 MB / 478.1 MB Notification: Performance of Templates: time 0.2913/0.9911, allocations: 49.12 MB / 0.6499 GB, free: 149.3 MB / 494.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)