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/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-05,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-05,outputFormat="empty",numberOfIntervals=6000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.007568/0.007568, allocations: 163.9 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.359/1.359, allocations: 170.8 MB / 186.6 MB, free: 1.117 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.00163/0.001629, allocations: 114.6 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000328/0.000328, allocations: 8 kB / 274.1 MB, free: 10.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2165/0.2168, allocations: 38.76 MB / 312.9 MB, free: 38.75 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3584/0.5753, allocations: 116.9 MB / 429.8 MB, free: 92.2 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003318/0.5757, allocations: 90.19 kB / 429.9 MB, free: 92.2 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2651/0.8408, allocations: 118.5 MB / 0.5356 GB, free: 8.352 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.8408, allocations: 0 / 0.5356 GB, free: 8.352 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0005132/0.8414, allocations: 139.8 kB / 0.5357 GB, free: 8.215 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1354 * Number of variables: 1354 Notification: Performance of Generate backend data structure: time 0.01847/0.8598, allocations: 5.44 MB / 0.541 GB, free: 2.695 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.8599, allocations: 16.02 kB / 0.541 GB, free: 2.68 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004719/0.8646, allocations: 0.7777 MB / 0.5418 GB, free: 1.895 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2087/1.073, allocations: 3.666 MB / 0.5454 GB, free: 31.38 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000314/1.074, allocations: 388 kB / 0.5457 GB, free: 31.37 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001396/1.075, allocations: 0.5073 MB / 0.5462 GB, free: 31.37 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01453/1.09, allocations: 6.646 MB / 0.5527 GB, free: 30.7 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000176/1.09, allocations: 11.5 kB / 0.5527 GB, free: 30.7 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000651/1.091, allocations: 218.9 kB / 0.5529 GB, free: 30.7 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000246/1.091, allocations: 236.1 kB / 0.5532 GB, free: 30.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01052/1.101, allocations: 5.193 MB / 0.5582 GB, free: 30.64 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03853/1.14, allocations: 21.09 MB / 0.5788 GB, free: 26.4 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005028/1.145, allocations: 4.095 MB / 0.5828 GB, free: 24.67 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003503/1.145, allocations: 159.5 kB / 0.583 GB, free: 24.58 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.123e-05/1.145, allocations: 55.12 kB / 0.583 GB, free: 24.54 MB / 346.7 MB Notification: Performance of pre-optimization done (n=226): time 5.79e-06/1.145, allocations: 0 / 0.583 GB, free: 24.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=273): time 0.04096/1.186, allocations: 14.22 MB / 0.5969 GB, free: 20.45 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.705e-05/1.187, allocations: 83.73 kB / 0.597 GB, free: 20.38 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00663/1.193, allocations: 2.624 MB / 0.5996 GB, free: 19.4 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006951/1.194, allocations: 65.45 kB / 0.5996 GB, free: 19.34 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001954/1.196, allocations: 2.376 MB / 0.6019 GB, free: 17.53 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00137/1.197, allocations: 0.9338 MB / 0.6029 GB, free: 16.8 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002493/1.198, allocations: 66.88 kB / 0.6029 GB, free: 16.75 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000223/1.198, allocations: 436.3 kB / 0.6033 GB, free: 16.39 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003398/1.201, allocations: 1.475 MB / 0.6048 GB, free: 15.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004038/1.205, allocations: 2.39 MB / 0.6071 GB, free: 14.18 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004007/1.209, allocations: 1.895 MB / 0.609 GB, free: 13.37 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.431e-05/1.209, allocations: 7.125 kB / 0.609 GB, free: 13.37 MB / 346.7 MB Notification: Performance of matching and sorting (n=422) (initialization): time 0.01248/1.222, allocations: 5.268 MB / 0.6141 GB, free: 11.35 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.135e-05/1.222, allocations: 18.28 kB / 0.6141 GB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-05/1.222, allocations: 29.38 kB / 0.6142 GB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003357/1.225, allocations: 0.9842 MB / 0.6151 GB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004254/1.23, allocations: 0.7199 MB / 0.6158 GB, free: 11.03 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01819/1.248, allocations: 13.73 MB / 0.6292 GB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005012/1.253, allocations: 187.1 kB / 0.6294 GB, free: 1.098 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007574/1.254, allocations: 137.5 kB / 0.6295 GB, free: 1.074 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 127 * 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 (364): * Single equations (assignments): 357 * 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 {(6,72.2%) 23,(1,100.0%) 1,(4,93.8%) 18,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00549/1.259, allocations: 1.585 MB / 0.6311 GB, free: 272 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001501/1.261, allocations: 349.2 kB / 0.6314 GB, free: 88 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01268/1.273, allocations: 4.697 MB / 0.636 GB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.807e-05/1.274, allocations: 27.41 kB / 0.636 GB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.397e-05/1.274, allocations: 10.47 kB / 0.636 GB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.87e-05/1.274, allocations: 15.61 kB / 0.636 GB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02579/1.299, allocations: 10.51 MB / 0.6463 GB, free: 9.445 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.06e-05/1.299, allocations: 4 kB / 0.6463 GB, free: 9.441 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001945/1.301, allocations: 432.5 kB / 0.6467 GB, free: 9.109 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002876/1.304, allocations: 1.045 MB / 0.6477 GB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004308/1.305, allocations: 70.75 kB / 0.6478 GB, free: 8.207 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01968/1.324, allocations: 17.23 MB / 0.6646 GB, free: 7.434 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.777e-06/1.325, allocations: 7.938 kB / 0.6647 GB, free: 7.426 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01186/1.336, allocations: 7.133 MB / 0.6716 GB, free: 0.7109 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00266/1.339, allocations: 0.7325 MB / 0.6723 GB, free: 36 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009258/1.34, allocations: 72.77 kB / 0.6724 GB, free: 0 / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002494/1.343, allocations: 200 kB / 0.6726 GB, free: 0 / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000637/1.343, allocations: 214.8 kB / 0.6728 GB, free: 15.87 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001985/1.343, allocations: 78.14 kB / 0.6729 GB, free: 15.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003351/1.347, allocations: 1.994 MB / 0.6748 GB, free: 14.12 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.1e-07/1.347, allocations: 0 / 0.6748 GB, free: 14.12 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004896/1.352, allocations: 1.081 MB / 0.6759 GB, free: 13.05 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.stator.strayReluctance.Phi.re,smpmM.stator.strayReluctance.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 (212): * Single equations (assignments): 205 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(6,72.2%) 23,(4,93.8%) 16,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001066/1.353, allocations: 0.511 MB / 0.6764 GB, free: 12.63 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.008797/1.362, allocations: 4.775 MB / 0.681 GB, free: 8.234 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.751e-05/1.362, allocations: 4 kB / 0.681 GB, free: 8.23 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006182/1.368, allocations: 3.077 MB / 0.684 GB, free: 5.398 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005583/1.374, allocations: 0.8753 MB / 0.6849 GB, free: 4.719 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2609/1.634, allocations: 12.04 MB / 0.6967 GB, free: 65.58 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003519/1.638, allocations: 3.52 MB / 0.7001 GB, free: 64.79 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003124/1.641, allocations: 0.7324 MB / 0.7008 GB, free: 64.75 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006953/1.642, allocations: 229.4 kB / 0.701 GB, free: 64.75 MB / 394.7 MB Notification: Performance of SimCode: time 1.362e-06/1.642, allocations: 0 / 0.701 GB, free: 64.75 MB / 394.7 MB Notification: Performance of Templates: time 0.1044/1.746, allocations: 55.44 MB / 0.7552 GB, free: 61.95 MB / 394.7 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)