Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008003/0.0008005, allocations: 84.38 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.0008148/0.0008149, 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.34/1.34, allocations: 205.4 MB / 222.1 MB, free: 5.637 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.0004525/0.0004525, allocations: 12 kB / 278.9 MB, free: 12.81 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.2365, allocations: 47.59 MB / 326.5 MB, free: 1.395 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.03545/0.272, allocations: 17.84 MB / 344.3 MB, free: 1.613 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.02077/0.2928, allocations: 5.591 MB / 349.9 MB, free: 12 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004426/0.2973, allocations: 107.5 kB / 350 MB, free: 11.9 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005539/0.3028, allocations: 0.9899 MB / 351 MB, free: 10.9 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008953/0.3118, allocations: 1.585 MB / 352.6 MB, free: 9.309 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005065/0.3169, allocations: 0.8148 MB / 353.4 MB, free: 8.492 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0151/0.332, allocations: 6.149 MB / 359.6 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01059/0.3427, allocations: 3.581 MB / 363.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006562/0.3493, allocations: 2 MB / 365.1 MB, free: 12.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007609/0.3569, allocations: 2.665 MB / 367.8 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001666/0.3586, allocations: 324 kB / 368.1 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00326/0.3619, allocations: 0.5544 MB / 368.7 MB, free: 9.125 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002993/0.365, allocations: 1.378 MB / 370.1 MB, free: 7.742 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003104/0.3681, allocations: 1.132 MB / 371.2 MB, free: 6.602 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01617/0.3843, allocations: 8.36 MB / 379.5 MB, free: 14.22 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.277e-06/0.3844, allocations: 0 / 379.5 MB, free: 14.22 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.657e-06/0.3844, allocations: 4 kB / 379.6 MB, free: 14.21 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003714/0.3848, allocations: 0 / 379.6 MB, free: 14.21 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02522/0.41, allocations: 5.595 MB / 385.1 MB, free: 8.539 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.624e-05/0.4101, allocations: 8.031 kB / 385.2 MB, free: 8.531 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009907/0.42, allocations: 1.004 MB / 386.2 MB, free: 7.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01136/0.4314, allocations: 3.182 MB / 389.3 MB, free: 4.262 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007293/0.4322, allocations: 406.2 kB / 389.7 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002023/0.4342, allocations: 0.496 MB / 390.2 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02273/0.457, allocations: 6.747 MB / 397 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001361/0.4572, allocations: 15.84 kB / 397 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006735/0.4578, allocations: 208 kB / 397.2 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002458/0.4581, allocations: 242.2 kB / 397.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01156/0.4697, allocations: 5.728 MB / 403.2 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03823/0.5079, allocations: 21.19 MB / 424.3 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008559/0.5165, allocations: 8.552 MB / 432.9 MB, free: 7.168 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003512/0.5201, allocations: 2.136 MB / 435 MB, free: 5.023 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0109/0.531, allocations: 5.956 MB / 441 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.14e-05/0.5311, allocations: 52.56 kB / 441 MB, free: 14.87 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 5.711e-06/0.5311, allocations: 3.984 kB / 441 MB, free: 14.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.02123/0.5523, allocations: 10.39 MB / 451.4 MB, free: 4.242 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.474e-05/0.5524, allocations: 77.39 kB / 451.5 MB, free: 4.152 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005042/0.5575, allocations: 2.881 MB / 454.4 MB, free: 1.262 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002835/0.5578, allocations: 65.7 kB / 454.5 MB, free: 1.191 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1811/0.7389, allocations: 2.349 MB / 456.8 MB, free: 106.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00101/0.7399, allocations: 0.7726 MB / 457.6 MB, free: 105.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001945/0.7401, allocations: 59.09 kB / 457.6 MB, free: 105.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.7403, allocations: 420.6 kB / 458 MB, free: 105.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002399/0.7427, allocations: 1.274 MB / 459.3 MB, free: 105.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00256/0.7453, allocations: 2.185 MB / 461.5 MB, free: 104 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002553/0.7479, allocations: 1.645 MB / 463.2 MB, free: 103.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.25e-05/0.7479, allocations: 9.5 kB / 463.2 MB, free: 103.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006507/0.7544, allocations: 4.461 MB / 467.6 MB, free: 101.4 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.481e-05/0.7545, allocations: 15.78 kB / 467.6 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.522e-05/0.7545, allocations: 27.25 kB / 467.7 MB, free: 101.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/0.7556, allocations: 0.5068 MB / 468.2 MB, free: 101.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00225/0.7578, allocations: 0.7037 MB / 468.9 MB, free: 101.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006407/0.7643, allocations: 9.321 MB / 478.2 MB, free: 93.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002484/0.7668, allocations: 186.4 kB / 478.4 MB, free: 93.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000227/0.767, allocations: 129 kB / 478.5 MB, free: 93.26 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (348): * Single equations (assignments): 341 * 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%) 11,(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.002687/0.7697, allocations: 1.511 MB / 480 MB, free: 92.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005436/0.7703, allocations: 319.9 kB / 480.3 MB, free: 92.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005417/0.7757, allocations: 3.894 MB / 484.2 MB, free: 89.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.396e-05/0.7757, allocations: 20 kB / 484.2 MB, free: 89.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.253e-05/0.7757, allocations: 8 kB / 484.2 MB, free: 89.85 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-05/0.7758, allocations: 15.8 kB / 484.3 MB, free: 89.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01118/0.787, allocations: 8.507 MB / 492.8 MB, free: 81.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.919e-06/0.787, allocations: 4.594 kB / 492.8 MB, free: 81.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00143/0.7884, allocations: 395.4 kB / 493.2 MB, free: 80.81 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001474/0.7899, allocations: 0.7197 MB / 493.9 MB, free: 80.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001544/0.7901, allocations: 63.97 kB / 493.9 MB, free: 80 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01018/0.8003, allocations: 15.19 MB / 0.4972 GB, free: 63.77 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.8003, allocations: 4 kB / 0.4972 GB, free: 63.77 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007708/0.808, allocations: 5.58 MB / 0.5027 GB, free: 58.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001425/0.8095, allocations: 0.661 MB / 0.5033 GB, free: 57.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007789/0.8103, allocations: 59.98 kB / 0.5034 GB, free: 57.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00172/0.812, allocations: 143.9 kB / 0.5035 GB, free: 57.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000343/0.8124, allocations: 165.7 kB / 0.5037 GB, free: 57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/0.8125, allocations: 67.98 kB / 0.5037 GB, free: 56.94 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003054/0.8156, allocations: 1.948 MB / 0.5056 GB, free: 54.99 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8156, allocations: 0 / 0.5056 GB, free: 54.99 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003408/0.819, allocations: 0.9309 MB / 0.5065 GB, free: 54.07 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],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 (185): * Single equations (assignments): 177 * 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%) 11,(1,100.0%) 3,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004481/0.8195, allocations: 207.5 kB / 0.5067 GB, free: 53.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005221/0.8247, allocations: 3.965 MB / 0.5106 GB, free: 49.79 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.072e-06/0.8247, allocations: 0 / 0.5106 GB, free: 49.79 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003285/0.828, allocations: 2.668 MB / 0.5132 GB, free: 47.04 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003928/0.832, allocations: 0.8177 MB / 0.514 GB, free: 46.22 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01643/0.8484, allocations: 11.41 MB / 0.5251 GB, free: 34.74 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002869/0.8513, allocations: 3.297 MB / 0.5284 GB, free: 31.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002568/0.8539, allocations: 0.7617 MB / 0.5291 GB, free: 30.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005239/0.8544, allocations: 219.4 kB / 0.5293 GB, free: 30.43 MB / 382.1 MB Notification: Performance of SimCode: time 1.122e-06/0.8544, allocations: 0 / 0.5293 GB, free: 30.43 MB / 382.1 MB Notification: Performance of Templates: time 0.06401/0.9185, allocations: 43.79 MB / 0.5721 GB, free: 2.586 MB / 398.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)