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.000868/0.0008679, allocations: 86.41 kB / 15.06 MB, free: 1.09 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.0009512/0.0009513, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.365/1.365, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.0005792/0.0005793, allocations: 16 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2699/0.2705, allocations: 47.59 MB / 326.5 MB, free: 1.605 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.0207/0.2913, allocations: 19.14 MB / 345.6 MB, free: 456 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01544/0.3067, allocations: 6.043 MB / 351.7 MB, free: 10.38 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00492/0.3117, allocations: 115.4 kB / 351.8 MB, free: 10.27 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004889/0.3166, allocations: 1.091 MB / 352.9 MB, free: 9.172 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009257/0.3259, allocations: 1.698 MB / 354.6 MB, free: 7.465 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004493/0.3304, allocations: 0.8694 MB / 355.4 MB, free: 6.594 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01074/0.3412, allocations: 6.522 MB / 362 MB, free: 44 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007222/0.3484, allocations: 3.69 MB / 365.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004427/0.3528, allocations: 2.132 MB / 367.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005697/0.3586, allocations: 2.805 MB / 370.6 MB, free: 7.344 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001993/0.3606, allocations: 340 kB / 370.9 MB, free: 7.012 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003496/0.3641, allocations: 0.5817 MB / 371.5 MB, free: 6.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002489/0.3666, allocations: 1.433 MB / 372.9 MB, free: 4.992 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002945/0.3695, allocations: 1.194 MB / 374.1 MB, free: 3.789 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0111/0.3807, allocations: 8.757 MB / 382.9 MB, free: 11.01 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.3807, allocations: 4 kB / 382.9 MB, free: 11 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3807, allocations: 0 / 382.9 MB, free: 11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003717/0.3811, allocations: 4 kB / 382.9 MB, free: 11 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.01674/0.3978, allocations: 5.854 MB / 388.8 MB, free: 5.066 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/0.3979, allocations: 12.02 kB / 388.8 MB, free: 5.055 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006039/0.4039, allocations: 1.07 MB / 389.8 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007279/0.4112, allocations: 3.349 MB / 393.2 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003636/0.4116, allocations: 422.7 kB / 393.6 MB, free: 144 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001196/0.4128, allocations: 0.5233 MB / 394.1 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01497/0.4278, allocations: 7.02 MB / 401.1 MB, free: 8.523 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001323/0.428, allocations: 19.89 kB / 401.2 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005312/0.4285, allocations: 220 kB / 401.4 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002695/0.4288, allocations: 262.5 kB / 401.6 MB, free: 8.031 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01141/0.4402, allocations: 5.925 MB / 407.6 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04125/0.4815, allocations: 22.53 MB / 430.1 MB, free: 11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009613/0.4912, allocations: 8.29 MB / 438.4 MB, free: 1.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004121/0.4953, allocations: 2.202 MB / 440.6 MB, free: 15.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01327/0.5086, allocations: 6.197 MB / 446.8 MB, free: 9.273 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.201e-05/0.5087, allocations: 60.48 kB / 446.8 MB, free: 9.207 MB / 382.1 MB Notification: Performance of pre-optimization done (n=220): time 5.14e-06/0.5088, allocations: 4 kB / 446.8 MB, free: 9.203 MB / 382.1 MB Notification: Performance of matching and sorting (n=240): time 0.2271/0.7359, allocations: 11.3 MB / 458.1 MB, free: 105.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.548e-05/0.736, allocations: 76.19 kB / 458.2 MB, free: 105.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006782/0.7427, allocations: 3.132 MB / 461.3 MB, free: 104.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003958/0.7432, allocations: 66.52 kB / 461.4 MB, free: 104.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001579/0.7447, allocations: 2.499 MB / 463.9 MB, free: 102.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007769/0.7455, allocations: 0.8314 MB / 464.7 MB, free: 102 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002648/0.7458, allocations: 59.84 kB / 464.8 MB, free: 101.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001863/0.746, allocations: 438.3 kB / 465.2 MB, free: 101.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002068/0.7481, allocations: 1.334 MB / 466.6 MB, free: 101.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002512/0.7506, allocations: 2.346 MB / 468.9 MB, free: 99.33 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002717/0.7533, allocations: 1.738 MB / 470.6 MB, free: 98.58 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.295e-05/0.7534, allocations: 8.344 kB / 470.6 MB, free: 98.58 MB / 382.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007196/0.7606, allocations: 4.715 MB / 475.4 MB, free: 96.49 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.445e-05/0.7606, allocations: 18.53 kB / 475.4 MB, free: 96.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.694e-05/0.7607, allocations: 30.06 kB / 475.4 MB, free: 96.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/0.7617, allocations: 0.5312 MB / 475.9 MB, free: 96.31 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002322/0.7641, allocations: 0.7528 MB / 476.7 MB, free: 96.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006595/0.7707, allocations: 9.418 MB / 486.1 MB, free: 87.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002738/0.7734, allocations: 193.7 kB / 486.3 MB, free: 87.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003046/0.7737, allocations: 140 kB / 486.4 MB, free: 87.7 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.003138/0.7769, allocations: 1.572 MB / 488 MB, free: 86.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000876/0.7778, allocations: 343.8 kB / 488.3 MB, free: 85.78 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006116/0.7839, allocations: 4.071 MB / 492.4 MB, free: 81.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.515e-05/0.7839, allocations: 28 kB / 492.4 MB, free: 81.58 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.929e-05/0.784, allocations: 8 kB / 492.5 MB, free: 81.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-05/0.784, allocations: 15.91 kB / 492.5 MB, free: 81.56 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01328/0.7973, allocations: 8.979 MB / 0.4897 GB, free: 72.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.188e-05/0.7973, allocations: 12.09 kB / 0.4897 GB, free: 72.42 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001537/0.7989, allocations: 411.4 kB / 0.4901 GB, free: 72.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001627/0.8005, allocations: 0.7363 MB / 0.4908 GB, free: 71.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001827/0.8007, allocations: 67.94 kB / 0.4909 GB, free: 71.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01098/0.8117, allocations: 15.3 MB / 0.5058 GB, free: 54.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.753e-06/0.8118, allocations: 8 kB / 0.5058 GB, free: 54.84 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008726/0.8205, allocations: 5.863 MB / 0.5116 GB, free: 48.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00187/0.8224, allocations: 0.7069 MB / 0.5122 GB, free: 48.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00101/0.8234, allocations: 55.98 kB / 0.5123 GB, free: 48.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002021/0.8255, allocations: 151.9 kB / 0.5124 GB, free: 47.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004054/0.8259, allocations: 181.7 kB / 0.5126 GB, free: 47.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001764/0.8261, allocations: 75.97 kB / 0.5127 GB, free: 47.63 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003967/0.8301, allocations: 2.103 MB / 0.5147 GB, free: 45.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.8301, allocations: 0 / 0.5147 GB, free: 45.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004094/0.8342, allocations: 0.9918 MB / 0.5157 GB, free: 44.55 MB / 382.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.0005237/0.8347, allocations: 221.9 kB / 0.5159 GB, free: 44.33 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00582/0.8405, allocations: 4.141 MB / 0.52 GB, free: 40.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.484e-06/0.8406, allocations: 5.875 kB / 0.52 GB, free: 40.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003796/0.8444, allocations: 2.763 MB / 0.5227 GB, free: 37.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00495/0.8493, allocations: 0.9155 MB / 0.5236 GB, free: 36.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01819/0.8675, allocations: 11.95 MB / 0.5352 GB, free: 24.27 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002957/0.8705, allocations: 3.404 MB / 0.5386 GB, free: 20.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002764/0.8733, allocations: 0.8112 MB / 0.5394 GB, free: 20.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005885/0.8739, allocations: 243.4 kB / 0.5396 GB, free: 19.79 MB / 382.1 MB Notification: Performance of SimCode: time 9.42e-07/0.8739, allocations: 0 / 0.5396 GB, free: 19.79 MB / 382.1 MB Notification: Performance of Templates: time 0.07803/0.952, allocations: 47.5 MB / 0.586 GB, free: 4.211 MB / 414.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)