Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.008017/0.008018, allocations: 103.8 kB / 15.74 MB, free: 6.449 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.001568/0.001568, allocations: 195.5 kB / 16.67 MB, free: 6.355 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.396/1.396, allocations: 205.1 MB / 222.6 MB, free: 4.539 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.001157/0.001157, allocations: 50.23 kB / 326.6 MB, free: 14.26 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07987/0.08103, allocations: 46.62 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02146/0.1025, allocations: 21.66 MB / 394.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01229/0.1149, allocations: 6.445 MB / 401.3 MB, free: 5.078 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003727/0.1186, allocations: 119.5 kB / 401.4 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00472/0.1234, allocations: 1.482 MB / 402.9 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007266/0.1307, allocations: 2.042 MB / 404.9 MB, free: 1.414 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003998/0.1347, allocations: 1.306 MB / 406.2 MB, free: 108 kB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009773/0.1445, allocations: 6.531 MB / 412.8 MB, free: 9.551 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01182/0.1563, allocations: 5.515 MB / 418.3 MB, free: 3.945 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005563/0.1619, allocations: 2.975 MB / 421.3 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005811/0.1678, allocations: 3.565 MB / 424.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002183/0.17, allocations: 0.8203 MB / 425.7 MB, free: 12.56 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003331/0.1733, allocations: 1.097 MB / 426.7 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002681/0.176, allocations: 2.022 MB / 428.8 MB, free: 9.438 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005415/0.1815, allocations: 3.532 MB / 432.3 MB, free: 5.891 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0143/0.1958, allocations: 10.82 MB / 443.1 MB, free: 11.03 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.723e-06/0.1959, allocations: 0 / 443.1 MB, free: 11.03 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.1959, allocations: 0 / 443.1 MB, free: 11.03 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003727/0.1963, allocations: 0 / 443.1 MB, free: 11.03 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.01899/0.2152, allocations: 7.083 MB / 450.2 MB, free: 3.859 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.2153, allocations: 12.03 kB / 450.2 MB, free: 3.848 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005073/0.2204, allocations: 1.098 MB / 451.3 MB, free: 2.746 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.204/0.4244, allocations: 3.523 MB / 454.8 MB, free: 63.46 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007026/0.4251, allocations: 405.4 kB / 455.2 MB, free: 63.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002104/0.4273, allocations: 0.5291 MB / 455.8 MB, free: 63.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01535/0.4426, allocations: 7.05 MB / 462.8 MB, free: 60.83 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001458/0.4428, allocations: 19.81 kB / 462.8 MB, free: 60.83 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004857/0.4433, allocations: 217.1 kB / 463 MB, free: 60.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002394/0.4435, allocations: 258.6 kB / 463.3 MB, free: 60.64 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01112/0.4547, allocations: 5.941 MB / 469.2 MB, free: 58.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03218/0.4869, allocations: 22.22 MB / 491.5 MB, free: 41.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006367/0.4933, allocations: 8.284 MB / 499.7 MB, free: 32.25 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002815/0.4961, allocations: 2.165 MB / 0.4901 GB, free: 30.1 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009664/0.5058, allocations: 6.177 MB / 0.4962 GB, free: 23.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.087e-05/0.5059, allocations: 60.5 kB / 0.4962 GB, free: 23.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=220): time 4.187e-06/0.5059, allocations: 0 / 0.4962 GB, free: 23.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=240): time 0.02038/0.5263, allocations: 11.22 MB / 0.5072 GB, free: 12.63 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/0.5264, allocations: 81.41 kB / 0.5073 GB, free: 12.54 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004163/0.5305, allocations: 3.155 MB / 0.5104 GB, free: 9.406 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002617/0.5308, allocations: 69.7 kB / 0.5104 GB, free: 9.332 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001192/0.532, allocations: 2.569 MB / 0.5129 GB, free: 6.914 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005417/0.5326, allocations: 0.8671 MB / 0.5138 GB, free: 6.055 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007299/0.5333, allocations: 0.5539 MB / 0.5143 GB, free: 5.492 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.654e-05/0.5333, allocations: 313.1 kB / 0.5146 GB, free: 5.184 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001774/0.5351, allocations: 1.337 MB / 0.5159 GB, free: 3.848 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00211/0.5372, allocations: 2.341 MB / 0.5182 GB, free: 1.062 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005005/0.5423, allocations: 3.924 MB / 0.522 GB, free: 12.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.767e-05/0.5423, allocations: 8 kB / 0.522 GB, free: 12.65 MB / 398.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007969/0.5503, allocations: 4.719 MB / 0.5267 GB, free: 7.824 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.872e-05/0.5503, allocations: 19.94 kB / 0.5267 GB, free: 7.805 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.147e-05/0.5504, allocations: 32 kB / 0.5267 GB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001233/0.5516, allocations: 0.5239 MB / 0.5272 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002898/0.5545, allocations: 0.7449 MB / 0.5279 GB, free: 6.484 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009176/0.5637, allocations: 10.3 MB / 0.538 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003038/0.5668, allocations: 187.8 kB / 0.5382 GB, free: 11.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004212/0.5672, allocations: 140 kB / 0.5383 GB, free: 11.18 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.003076/0.5703, allocations: 1.574 MB / 0.5399 GB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008249/0.5711, allocations: 361.7 kB / 0.5402 GB, free: 9.234 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006971/0.5781, allocations: 4.049 MB / 0.5442 GB, free: 5.082 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.185e-05/0.5782, allocations: 24 kB / 0.5442 GB, free: 5.059 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.508e-05/0.5782, allocations: 12 kB / 0.5442 GB, free: 5.047 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-05/0.5782, allocations: 11.95 kB / 0.5442 GB, free: 5.035 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01535/0.5936, allocations: 8.968 MB / 0.553 GB, free: 11.93 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.121e-05/0.5936, allocations: 4 kB / 0.553 GB, free: 11.92 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001746/0.5954, allocations: 412 kB / 0.5534 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001917/0.5973, allocations: 0.7326 MB / 0.5541 GB, free: 10.76 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001901/0.5975, allocations: 67.91 kB / 0.5541 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01466/0.6122, allocations: 16.74 MB / 0.5705 GB, free: 8.848 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/0.6122, allocations: 8 kB / 0.5705 GB, free: 8.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009721/0.622, allocations: 5.855 MB / 0.5762 GB, free: 2.824 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002273/0.6243, allocations: 0.7135 MB / 0.5769 GB, free: 2.09 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006086/0.6249, allocations: 67.92 kB / 0.577 GB, free: 2.023 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00173/0.6266, allocations: 139.8 kB / 0.5771 GB, free: 1.887 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004082/0.6271, allocations: 181.6 kB / 0.5773 GB, free: 1.707 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001526/0.6272, allocations: 71.97 kB / 0.5773 GB, free: 1.637 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003277/0.6305, allocations: 2.134 MB / 0.5794 GB, free: 15.51 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6305, allocations: 0 / 0.5794 GB, free: 15.51 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003577/0.6341, allocations: 0.9843 MB / 0.5804 GB, free: 14.53 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.000587/0.6347, allocations: 248.5 kB / 0.5806 GB, free: 14.27 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006723/0.6414, allocations: 4.161 MB / 0.5847 GB, free: 10.01 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.6415, allocations: 0 / 0.5847 GB, free: 10.01 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00444/0.6459, allocations: 2.753 MB / 0.5874 GB, free: 7.156 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005149/0.6511, allocations: 0.9462 MB / 0.5883 GB, free: 6.207 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01739/0.6685, allocations: 10.1 MB / 0.5982 GB, free: 12 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004692/0.6733, allocations: 3.404 MB / 0.6015 GB, free: 8.566 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003008/0.6763, allocations: 0.8151 MB / 0.6023 GB, free: 7.75 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006981/0.677, allocations: 239.4 kB / 0.6025 GB, free: 7.516 MB / 478.1 MB Notification: Performance of SimCode: time 1.423e-06/0.6771, allocations: 0 / 0.6025 GB, free: 7.516 MB / 478.1 MB Notification: Performance of Templates: time 0.2694/0.9464, allocations: 49.12 MB / 0.6505 GB, free: 149.2 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)