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.007543/0.007543, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001628/0.001628, allocations: 191.7 kB / 16.67 MB, free: 5.523 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.372/1.372, allocations: 205.1 MB / 222.5 MB, free: 12.23 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.001186/0.001186, allocations: 55.92 kB / 326.6 MB, free: 3.27 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.083/0.08419, allocations: 46.61 MB / 373.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.2024/0.2867, allocations: 21.68 MB / 394.9 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0148/0.3015, allocations: 6.442 MB / 401.3 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005172/0.3068, allocations: 120.6 kB / 401.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005421/0.3122, allocations: 1.477 MB / 402.9 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009545/0.3218, allocations: 2.045 MB / 404.9 MB, free: 8.895 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004681/0.3265, allocations: 1.307 MB / 406.2 MB, free: 8.059 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01192/0.3384, allocations: 6.532 MB / 412.8 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01256/0.351, allocations: 5.509 MB / 418.3 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006242/0.3573, allocations: 2.978 MB / 421.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007244/0.3646, allocations: 3.561 MB / 424.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002757/0.3674, allocations: 0.8164 MB / 425.6 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004283/0.3717, allocations: 1.101 MB / 426.7 MB, free: 9.918 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003135/0.3748, allocations: 2.026 MB / 428.8 MB, free: 7.887 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006612/0.3815, allocations: 3.528 MB / 432.3 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01274/0.3943, allocations: 10.79 MB / 443.1 MB, free: 9.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.3943, allocations: 0 / 443.1 MB, free: 9.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3943, allocations: 0 / 443.1 MB, free: 9.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000251/0.3946, allocations: 0 / 443.1 MB, free: 9.52 MB / 366.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.0211/0.4157, allocations: 6.926 MB / 450 MB, free: 2.512 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.4157, allocations: 12.03 kB / 450 MB, free: 2.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005642/0.4214, allocations: 1.059 MB / 451.1 MB, free: 1.434 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008264/0.4297, allocations: 3.52 MB / 454.6 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003543/0.4301, allocations: 395.3 kB / 455 MB, free: 13.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001393/0.4315, allocations: 0.5387 MB / 455.5 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01342/0.4449, allocations: 7.048 MB / 462.6 MB, free: 5.793 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001335/0.4451, allocations: 15.83 kB / 462.6 MB, free: 5.777 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005211/0.4456, allocations: 220 kB / 462.8 MB, free: 5.562 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002283/0.4458, allocations: 258.6 kB / 463.1 MB, free: 5.309 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01064/0.4565, allocations: 5.944 MB / 469 MB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0422/0.4987, allocations: 22.15 MB / 491.2 MB, free: 8.625 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009271/0.508, allocations: 8.284 MB / 499.4 MB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003691/0.5117, allocations: 2.156 MB / 0.4898 GB, free: 13.29 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01314/0.5249, allocations: 6.175 MB / 0.4959 GB, free: 6.977 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.337e-05/0.525, allocations: 60.56 kB / 0.4959 GB, free: 6.906 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 4.438e-06/0.525, allocations: 0 / 0.4959 GB, free: 6.906 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.02586/0.5509, allocations: 11.16 MB / 0.5068 GB, free: 11.49 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.082e-05/0.551, allocations: 73.41 kB / 0.5069 GB, free: 11.41 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006186/0.5572, allocations: 3.152 MB / 0.51 GB, free: 8.254 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005453/0.5577, allocations: 61.7 kB / 0.51 GB, free: 8.188 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001989/0.5597, allocations: 2.506 MB / 0.5125 GB, free: 5.652 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001094/0.5609, allocations: 0.8279 MB / 0.5133 GB, free: 4.812 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001315/0.5622, allocations: 0.5653 MB / 0.5138 GB, free: 4.238 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.905e-05/0.5623, allocations: 305.1 kB / 0.5141 GB, free: 3.938 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002446/0.5647, allocations: 1.33 MB / 0.5154 GB, free: 2.605 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003088/0.5678, allocations: 2.339 MB / 0.5177 GB, free: 15.82 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006629/0.5745, allocations: 3.924 MB / 0.5215 GB, free: 11.42 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.318e-05/0.5746, allocations: 8 kB / 0.5215 GB, free: 11.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.01027/0.5849, allocations: 4.701 MB / 0.5261 GB, free: 6.602 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.035e-05/0.585, allocations: 21.59 kB / 0.5262 GB, free: 6.582 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.247e-05/0.585, allocations: 32 kB / 0.5262 GB, free: 6.551 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001295/0.5863, allocations: 0.5303 MB / 0.5267 GB, free: 6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002999/0.5893, allocations: 0.741 MB / 0.5274 GB, free: 5.258 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009089/0.5984, allocations: 10.29 MB / 0.5375 GB, free: 10.27 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003118/0.6016, allocations: 183.8 kB / 0.5377 GB, free: 10.09 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004714/0.6021, allocations: 144 kB / 0.5378 GB, free: 9.949 MB / 478.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.003271/0.6054, allocations: 1.57 MB / 0.5393 GB, free: 8.367 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009453/0.6063, allocations: 347.8 kB / 0.5397 GB, free: 8.023 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007145/0.6135, allocations: 4.049 MB / 0.5436 GB, free: 3.875 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.638e-05/0.6136, allocations: 27.94 kB / 0.5436 GB, free: 3.848 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.118e-05/0.6136, allocations: 8 kB / 0.5436 GB, free: 3.84 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.426e-05/0.6136, allocations: 11.95 kB / 0.5437 GB, free: 3.828 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2106/0.8242, allocations: 8.957 MB / 0.5524 GB, free: 145.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.426e-05/0.8243, allocations: 8.219 kB / 0.5524 GB, free: 145.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001828/0.8261, allocations: 412.9 kB / 0.5528 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001959/0.8281, allocations: 0.7295 MB / 0.5535 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000197/0.8283, allocations: 68.42 kB / 0.5536 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01277/0.8411, allocations: 16.72 MB / 0.5699 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/0.8411, allocations: 4.844 kB / 0.5699 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009445/0.8506, allocations: 5.85 MB / 0.5756 GB, free: 128.4 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001917/0.8525, allocations: 0.6963 MB / 0.5763 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000473/0.853, allocations: 59.09 kB / 0.5764 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001607/0.8546, allocations: 137.6 kB / 0.5765 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005481/0.8552, allocations: 186.1 kB / 0.5767 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001686/0.8553, allocations: 71.17 kB / 0.5767 GB, free: 128 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003436/0.8588, allocations: 2.128 MB / 0.5788 GB, free: 127.2 MB / 478.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.8588, allocations: 0 / 0.5788 GB, free: 127.2 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003599/0.8624, allocations: 0.9923 MB / 0.5798 GB, free: 127.1 MB / 478.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.0006127/0.863, allocations: 249.8 kB / 0.58 GB, free: 126.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005921/0.869, allocations: 4.153 MB / 0.5841 GB, free: 125 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.294e-06/0.869, allocations: 0 / 0.5841 GB, free: 125 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003471/0.8725, allocations: 2.746 MB / 0.5868 GB, free: 123.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004071/0.8766, allocations: 0.9499 MB / 0.5877 GB, free: 123.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01598/0.8925, allocations: 9.928 MB / 0.5974 GB, free: 117.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00352/0.8961, allocations: 3.406 MB / 0.6007 GB, free: 114.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003227/0.8994, allocations: 0.8124 MB / 0.6015 GB, free: 113.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007972/0.9002, allocations: 242.1 kB / 0.6017 GB, free: 113.6 MB / 478.1 MB Notification: Performance of SimCode: time 7.72e-07/0.9002, allocations: 4 kB / 0.6017 GB, free: 113.6 MB / 478.1 MB Notification: Performance of Templates: time 0.08103/0.9812, allocations: 49.12 MB / 0.6497 GB, free: 64.94 MB / 478.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)