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.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 98.92 kB / 16.5 MB, free: 6.641 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.001128/0.001128, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.342/1.342, allocations: 205.1 MB / 223.3 MB, free: 12.38 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.001144/0.001144, allocations: 43.92 kB / 279.3 MB, free: 3.574 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09803/0.09918, allocations: 46.63 MB / 326 MB, free: 4.879 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02071/0.1199, allocations: 19.97 MB / 345.9 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01188/0.1319, allocations: 5.882 MB / 351.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003498/0.1354, allocations: 111.5 kB / 351.9 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003712/0.1392, allocations: 1.142 MB / 353.1 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006015/0.1452, allocations: 1.733 MB / 354.8 MB, free: 7.914 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003221/0.1484, allocations: 1.139 MB / 355.9 MB, free: 6.773 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.008835/0.1573, allocations: 6.672 MB / 362.6 MB, free: 76 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006285/0.1636, allocations: 4.475 MB / 367.1 MB, free: 11.51 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003718/0.1674, allocations: 2.358 MB / 369.4 MB, free: 9.141 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004719/0.1721, allocations: 3.187 MB / 372.6 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001391/0.1735, allocations: 476 kB / 373.1 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002709/0.1762, allocations: 0.7652 MB / 373.9 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001624/0.1779, allocations: 1.608 MB / 375.5 MB, free: 3.098 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004374/0.1822, allocations: 3.005 MB / 378.5 MB, free: 80 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1849/0.3672, allocations: 9.946 MB / 388.4 MB, free: 24.9 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.868e-06/0.3672, allocations: 0 / 388.4 MB, free: 24.9 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.266e-06/0.3672, allocations: 0 / 388.4 MB, free: 24.9 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005087/0.3678, allocations: 0 / 388.4 MB, free: 24.9 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02466/0.3924, allocations: 6.582 MB / 395 MB, free: 22.32 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.3925, allocations: 15.55 kB / 395 MB, free: 22.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00608/0.3986, allocations: 1.007 MB / 396 MB, free: 21.89 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00878/0.4074, allocations: 3.268 MB / 399.3 MB, free: 20.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005739/0.408, allocations: 394.3 kB / 399.7 MB, free: 20.7 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002042/0.4101, allocations: 0.5037 MB / 400.2 MB, free: 20.69 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02071/0.4308, allocations: 6.779 MB / 407 MB, free: 16.87 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003137/0.4312, allocations: 12.75 kB / 407 MB, free: 16.86 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002884/0.4341, allocations: 210.4 kB / 407.2 MB, free: 16.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003448/0.4344, allocations: 240.2 kB / 407.4 MB, free: 16.67 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01635/0.4508, allocations: 5.741 MB / 413.2 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04263/0.4935, allocations: 21.1 MB / 434.3 MB, free: 9.098 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01033/0.5038, allocations: 8.542 MB / 442.8 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004472/0.5084, allocations: 2.123 MB / 444.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0133/0.5217, allocations: 5.935 MB / 450.9 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.875e-05/0.5218, allocations: 56.56 kB / 450.9 MB, free: 7.441 MB / 350.1 MB Notification: Performance of pre-optimization done (n=205): time 4.668e-06/0.5218, allocations: 0 / 450.9 MB, free: 7.441 MB / 350.1 MB Notification: Performance of matching and sorting (n=222): time 0.0224/0.5442, allocations: 10.26 MB / 461.2 MB, free: 13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.916e-05/0.5443, allocations: 73.41 kB / 461.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005614/0.5499, allocations: 2.908 MB / 464.1 MB, free: 9.996 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002555/0.5502, allocations: 61.7 kB / 464.2 MB, free: 9.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001943/0.5521, allocations: 2.358 MB / 466.6 MB, free: 7.559 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009643/0.5531, allocations: 0.7659 MB / 467.3 MB, free: 6.801 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009216/0.5541, allocations: 0.5216 MB / 467.8 MB, free: 6.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.837e-05/0.5542, allocations: 304.2 kB / 468.1 MB, free: 5.973 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002136/0.5563, allocations: 1.267 MB / 469.4 MB, free: 4.703 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003234/0.5595, allocations: 2.183 MB / 471.6 MB, free: 2.137 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005597/0.5652, allocations: 3.663 MB / 475.3 MB, free: 14.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-05/0.5652, allocations: 8 kB / 475.3 MB, free: 14.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.008708/0.5739, allocations: 4.443 MB / 479.7 MB, free: 9.855 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.885e-05/0.574, allocations: 23.19 kB / 479.7 MB, free: 9.836 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-05/0.5741, allocations: 28 kB / 479.8 MB, free: 9.809 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00138/0.5755, allocations: 0.5136 MB / 480.3 MB, free: 9.277 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002487/0.578, allocations: 0.6817 MB / 481 MB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008953/0.5869, allocations: 9.346 MB / 490.3 MB, free: 14.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002823/0.5898, allocations: 179.8 kB / 490.5 MB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000311/0.5901, allocations: 128 kB / 490.6 MB, free: 14.38 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * 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,11,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.003163/0.5933, allocations: 1.518 MB / 492.1 MB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008489/0.5941, allocations: 324 kB / 492.4 MB, free: 12.58 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006885/0.601, allocations: 3.867 MB / 496.3 MB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.761e-05/0.601, allocations: 20 kB / 496.3 MB, free: 8.625 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.278e-05/0.6011, allocations: 8 kB / 496.3 MB, free: 8.617 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.011e-05/0.6011, allocations: 19.89 kB / 496.3 MB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01551/0.6166, allocations: 8.483 MB / 0.493 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/0.6167, allocations: 4 kB / 0.493 GB, free: 28 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001652/0.6183, allocations: 385.2 kB / 0.4934 GB, free: 15.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001894/0.6202, allocations: 0.7313 MB / 0.4941 GB, free: 14.93 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001746/0.6204, allocations: 59.97 kB / 0.4941 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01435/0.6348, allocations: 15.2 MB / 0.509 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.6348, allocations: 8 kB / 0.509 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01027/0.6451, allocations: 5.551 MB / 0.5144 GB, free: 9.004 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001864/0.647, allocations: 0.6532 MB / 0.515 GB, free: 8.328 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001037/0.648, allocations: 55.92 kB / 0.5151 GB, free: 8.273 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002152/0.6502, allocations: 131.9 kB / 0.5152 GB, free: 8.145 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005315/0.6507, allocations: 176.4 kB / 0.5154 GB, free: 7.977 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001926/0.651, allocations: 63.98 kB / 0.5155 GB, free: 7.914 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004237/0.6552, allocations: 1.967 MB / 0.5174 GB, free: 5.949 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.6552, allocations: 0 / 0.5174 GB, free: 5.949 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004041/0.6593, allocations: 0.9258 MB / 0.5183 GB, free: 5.023 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,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,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],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 (185): * Single equations (assignments): 177 * 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,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,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.0006372/0.6599, allocations: 240.7 kB / 0.5185 GB, free: 4.797 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00629/0.6662, allocations: 3.957 MB / 0.5224 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.6662, allocations: 0 / 0.5224 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1727/0.839, allocations: 2.652 MB / 0.525 GB, free: 145.1 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004501/0.8435, allocations: 0.8107 MB / 0.5258 GB, free: 145.1 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01888/0.8624, allocations: 11.73 MB / 0.5372 GB, free: 139.6 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003448/0.8659, allocations: 3.3 MB / 0.5404 GB, free: 138.8 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002811/0.8688, allocations: 0.7563 MB / 0.5412 GB, free: 138.6 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006188/0.8694, allocations: 218.8 kB / 0.5414 GB, free: 138.6 MB / 430.1 MB Notification: Performance of SimCode: time 8.52e-07/0.8694, allocations: 0 / 0.5414 GB, free: 138.6 MB / 430.1 MB Notification: Performance of Templates: time 0.07488/0.9443, allocations: 45.54 MB / 0.5859 GB, free: 99.24 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)