Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.00106/0.00106, allocations: 91.81 kB / 16.31 MB, free: 5.555 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.0009994/0.0009995, allocations: 179.6 kB / 17.21 MB, free: 5.477 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.367/1.367, allocations: 205.4 MB / 223.4 MB, free: 13.14 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.0004642/0.0004642, allocations: 8 kB / 280.1 MB, free: 3.719 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09564/0.09612, allocations: 47.58 MB / 327.7 MB, free: 4.066 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02031/0.1165, allocations: 19.15 MB / 346.9 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01419/0.1307, allocations: 6.031 MB / 352.9 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004345/0.1351, allocations: 115.4 kB / 353 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004995/0.1401, allocations: 1.099 MB / 354.1 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009522/0.1497, allocations: 1.697 MB / 355.8 MB, free: 7.867 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004296/0.154, allocations: 0.8771 MB / 356.7 MB, free: 6.988 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01212/0.1661, allocations: 6.519 MB / 363.2 MB, free: 452 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008581/0.1747, allocations: 3.686 MB / 366.9 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005352/0.1801, allocations: 2.124 MB / 369 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005527/0.1857, allocations: 2.813 MB / 371.8 MB, free: 7.746 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002957/0.1887, allocations: 348 kB / 372.2 MB, free: 7.406 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003767/0.1925, allocations: 0.5739 MB / 372.8 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002536/0.1951, allocations: 1.429 MB / 374.2 MB, free: 5.398 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002757/0.1979, allocations: 1.198 MB / 375.4 MB, free: 4.191 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2098/0.4077, allocations: 8.753 MB / 384.1 MB, free: 19.38 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.4078, allocations: 0 / 384.1 MB, free: 19.38 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.4078, allocations: 0 / 384.1 MB, free: 19.38 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003753/0.4082, allocations: 1.031 kB / 384.1 MB, free: 19.38 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01736/0.4255, allocations: 5.863 MB / 390 MB, free: 17.12 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.4256, allocations: 12.25 kB / 390 MB, free: 17.12 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0068/0.4324, allocations: 1.065 MB / 391.1 MB, free: 16.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008853/0.4413, allocations: 3.357 MB / 394.4 MB, free: 16.13 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000535/0.4419, allocations: 417.7 kB / 394.8 MB, free: 16.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002368/0.4442, allocations: 0.5205 MB / 395.4 MB, free: 16.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01595/0.4602, allocations: 7.031 MB / 402.4 MB, free: 14.49 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001313/0.4604, allocations: 13.09 kB / 402.4 MB, free: 14.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005649/0.461, allocations: 218.5 kB / 402.6 MB, free: 14.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002126/0.4612, allocations: 269.8 kB / 402.9 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01117/0.4724, allocations: 5.921 MB / 408.8 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04098/0.5134, allocations: 22.53 MB / 431.3 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009909/0.5233, allocations: 8.282 MB / 439.6 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00433/0.5277, allocations: 2.197 MB / 441.8 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01359/0.5413, allocations: 6.203 MB / 448 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.445e-05/0.5414, allocations: 56.5 kB / 448.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=220): time 4.208e-06/0.5414, allocations: 0 / 448.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=240): time 0.02513/0.5666, allocations: 11.32 MB / 459.4 MB, free: 14.59 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.498e-05/0.5666, allocations: 81.41 kB / 459.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006154/0.5728, allocations: 3.132 MB / 462.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004181/0.5733, allocations: 65.7 kB / 462.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00208/0.5754, allocations: 2.497 MB / 465.2 MB, free: 8.781 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001134/0.5765, allocations: 0.8306 MB / 466 MB, free: 7.957 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003378/0.5768, allocations: 60 kB / 466 MB, free: 7.898 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002904/0.5771, allocations: 431 kB / 466.5 MB, free: 7.473 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002688/0.5798, allocations: 1.341 MB / 467.8 MB, free: 6.129 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003865/0.5837, allocations: 2.343 MB / 470.2 MB, free: 3.355 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003631/0.5874, allocations: 1.739 MB / 471.9 MB, free: 1.625 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.828e-05/0.5875, allocations: 12 kB / 471.9 MB, free: 1.613 MB / 366.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.009377/0.5968, allocations: 4.709 MB / 476.6 MB, free: 13 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.17e-05/0.5969, allocations: 16.66 kB / 476.6 MB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.082e-05/0.597, allocations: 36 kB / 476.7 MB, free: 12.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001316/0.5983, allocations: 0.5302 MB / 477.2 MB, free: 12.4 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003153/0.6015, allocations: 0.7555 MB / 477.9 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009639/0.6111, allocations: 9.401 MB / 487.3 MB, free: 1.684 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003334/0.6145, allocations: 203.6 kB / 487.5 MB, free: 1.484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006141/0.6151, allocations: 136 kB / 487.7 MB, free: 1.352 MB / 382.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 (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004124/0.6193, allocations: 1.572 MB / 489.3 MB, free: 15.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001109/0.6204, allocations: 339.8 kB / 489.6 MB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00822/0.6286, allocations: 4.076 MB / 493.7 MB, free: 11.33 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.712e-05/0.6287, allocations: 24 kB / 493.7 MB, free: 11.31 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.064e-05/0.6288, allocations: 8 kB / 493.7 MB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.89e-05/0.6288, allocations: 14.25 kB / 493.7 MB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0199/0.6487, allocations: 8.997 MB / 0.4909 GB, free: 2.219 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.658e-05/0.6488, allocations: 4 kB / 0.4909 GB, free: 2.215 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001823/0.6506, allocations: 413.1 kB / 0.4913 GB, free: 1.828 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001923/0.6525, allocations: 0.7334 MB / 0.492 GB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000264/0.6528, allocations: 75.91 kB / 0.4921 GB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01636/0.6692, allocations: 15.31 MB / 0.5071 GB, free: 0.7031 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.763e-06/0.6692, allocations: 8 kB / 0.5071 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01334/0.6826, allocations: 5.86 MB / 0.5128 GB, free: 10.71 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003053/0.6857, allocations: 0.7075 MB / 0.5135 GB, free: 9.977 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001369/0.6871, allocations: 55.95 kB / 0.5135 GB, free: 9.922 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003159/0.6903, allocations: 155.9 kB / 0.5137 GB, free: 9.77 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006266/0.6909, allocations: 183.4 kB / 0.5139 GB, free: 9.594 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003044/0.6912, allocations: 71.98 kB / 0.5139 GB, free: 9.523 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.006036/0.6973, allocations: 2.103 MB / 0.516 GB, free: 7.43 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.4e-07/0.6973, allocations: 2.625 kB / 0.516 GB, free: 7.43 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006336/0.7037, allocations: 0.9923 MB / 0.5169 GB, free: 6.438 MB / 430.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 (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 5,(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007299/0.7044, allocations: 214.6 kB / 0.5172 GB, free: 6.238 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00778/0.7122, allocations: 4.136 MB / 0.5212 GB, free: 2.109 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/0.7123, allocations: 4 kB / 0.5212 GB, free: 2.105 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004798/0.7171, allocations: 2.768 MB / 0.5239 GB, free: 15.29 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006253/0.7233, allocations: 0.9223 MB / 0.5248 GB, free: 14.37 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02217/0.7455, allocations: 11.94 MB / 0.5365 GB, free: 2.348 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1815/0.9271, allocations: 3.406 MB / 0.5398 GB, free: 160.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003946/0.9311, allocations: 0.8107 MB / 0.5406 GB, free: 160 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007567/0.9319, allocations: 240.7 kB / 0.5408 GB, free: 160 MB / 446.1 MB Notification: Performance of SimCode: time 1.673e-06/0.9319, allocations: 0 / 0.5408 GB, free: 160 MB / 446.1 MB Notification: Performance of Templates: time 0.0974/1.029, allocations: 47.5 MB / 0.5872 GB, free: 130.1 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)