Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.009727/0.009727, allocations: 97.3 kB / 15.73 MB, free: 6.035 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.002049/0.002049, allocations: 201.5 kB / 16.68 MB, free: 5.961 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.479/1.479, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.001144/0.001144, allocations: 47.41 kB / 326.6 MB, free: 14.29 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1033, allocations: 46.62 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02192/0.1252, allocations: 20.23 MB / 393.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01379/0.139, allocations: 5.943 MB / 399.4 MB, free: 7.031 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004814/0.1439, allocations: 119.4 kB / 399.5 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004678/0.1486, allocations: 1.354 MB / 400.8 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007724/0.1564, allocations: 1.902 MB / 402.7 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004186/0.1606, allocations: 1.247 MB / 404 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009933/0.1705, allocations: 6.11 MB / 410.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007679/0.1783, allocations: 5.363 MB / 415.5 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005482/0.1838, allocations: 2.819 MB / 418.3 MB, free: 3.973 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006031/0.1898, allocations: 3.39 MB / 421.7 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00174/0.1916, allocations: 0.7813 MB / 422.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002851/0.1945, allocations: 1.062 MB / 423.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001941/0.1964, allocations: 1.944 MB / 425.4 MB, free: 12.78 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005067/0.2015, allocations: 3.353 MB / 428.8 MB, free: 9.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01347/0.215, allocations: 10.32 MB / 439.1 MB, free: 15.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.215, allocations: 0 / 439.1 MB, free: 15.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.215, allocations: 0 / 439.1 MB, free: 15.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003326/0.2154, allocations: 0 / 439.1 MB, free: 15.05 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.01924/0.2346, allocations: 6.739 MB / 445.9 MB, free: 8.227 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.2347, allocations: 8.031 kB / 445.9 MB, free: 8.219 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004687/0.2394, allocations: 1.032 MB / 446.9 MB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00706/0.2465, allocations: 3.371 MB / 450.3 MB, free: 3.738 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003271/0.2468, allocations: 386.6 kB / 450.6 MB, free: 3.359 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001179/0.248, allocations: 0.5078 MB / 451.2 MB, free: 2.852 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2189/0.4669, allocations: 6.762 MB / 457.9 MB, free: 64.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001572/0.4671, allocations: 10.3 kB / 457.9 MB, free: 64.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004823/0.4676, allocations: 211 kB / 458.1 MB, free: 63.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003041/0.4679, allocations: 242.8 kB / 458.4 MB, free: 63.86 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01334/0.4813, allocations: 5.741 MB / 464.1 MB, free: 61.71 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03736/0.5187, allocations: 20.9 MB / 485 MB, free: 47.48 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006819/0.5255, allocations: 8.562 MB / 493.6 MB, free: 39.72 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002877/0.5284, allocations: 2.085 MB / 495.7 MB, free: 38.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00954/0.538, allocations: 5.921 MB / 0.4898 GB, free: 32.28 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.433e-05/0.5381, allocations: 56.56 kB / 0.4899 GB, free: 32.21 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 4.339e-06/0.5381, allocations: 0 / 0.4899 GB, free: 32.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.01824/0.5563, allocations: 10.36 MB / 0.5 GB, free: 21.65 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.876e-05/0.5564, allocations: 77.41 kB / 0.5001 GB, free: 21.56 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004615/0.561, allocations: 2.904 MB / 0.5029 GB, free: 18.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000187/0.5612, allocations: 65.7 kB / 0.503 GB, free: 18.58 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001193/0.5624, allocations: 2.418 MB / 0.5053 GB, free: 16.15 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000574/0.563, allocations: 0.8118 MB / 0.5061 GB, free: 15.35 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007376/0.5638, allocations: 0.514 MB / 0.5066 GB, free: 14.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.2e-05/0.5638, allocations: 301.1 kB / 0.5069 GB, free: 14.53 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001841/0.5657, allocations: 1.271 MB / 0.5081 GB, free: 13.26 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002152/0.5678, allocations: 2.174 MB / 0.5103 GB, free: 10.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004031/0.5719, allocations: 3.669 MB / 0.5138 GB, free: 6.617 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-05/0.5719, allocations: 11.94 kB / 0.5139 GB, free: 6.605 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006267/0.5782, allocations: 4.459 MB / 0.5182 GB, free: 2.082 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.345e-05/0.5782, allocations: 31.91 kB / 0.5182 GB, free: 2.051 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.934e-05/0.5783, allocations: 32 kB / 0.5183 GB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001051/0.5793, allocations: 0.5094 MB / 0.5188 GB, free: 1.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002265/0.5816, allocations: 0.6864 MB / 0.5194 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01054/0.5922, allocations: 10.2 MB / 0.5294 GB, free: 5.91 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002782/0.595, allocations: 167.8 kB / 0.5296 GB, free: 5.746 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004833/0.5955, allocations: 135.9 kB / 0.5297 GB, free: 5.613 MB / 398.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 (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,11,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.003475/0.599, allocations: 1.508 MB / 0.5312 GB, free: 4.094 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008595/0.5998, allocations: 333.9 kB / 0.5315 GB, free: 3.766 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007018/0.6069, allocations: 3.875 MB / 0.5353 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.681e-05/0.6069, allocations: 20 kB / 0.5353 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.045e-05/0.607, allocations: 15.92 kB / 0.5353 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.045e-05/0.607, allocations: 11.91 kB / 0.5353 GB, free: 15.74 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01537/0.6224, allocations: 8.472 MB / 0.5436 GB, free: 7.129 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-05/0.6224, allocations: 4 kB / 0.5436 GB, free: 7.125 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001716/0.6241, allocations: 395.7 kB / 0.544 GB, free: 6.742 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002015/0.6262, allocations: 0.721 MB / 0.5447 GB, free: 5.996 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002091/0.6264, allocations: 55.98 kB / 0.5447 GB, free: 5.941 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0161/0.6425, allocations: 16.63 MB / 0.561 GB, free: 4.219 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.534e-06/0.6426, allocations: 12.03 kB / 0.561 GB, free: 4.207 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009833/0.6524, allocations: 5.567 MB / 0.5664 GB, free: 14.49 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002095/0.6545, allocations: 0.6705 MB / 0.5671 GB, free: 13.8 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009372/0.6555, allocations: 51.98 kB / 0.5671 GB, free: 13.75 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002088/0.6576, allocations: 135.9 kB / 0.5672 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004676/0.6581, allocations: 165.6 kB / 0.5674 GB, free: 13.45 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001846/0.6583, allocations: 67.97 kB / 0.5675 GB, free: 13.39 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004093/0.6624, allocations: 1.963 MB / 0.5694 GB, free: 11.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.6624, allocations: 4 kB / 0.5694 GB, free: 11.42 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004176/0.6666, allocations: 0.9335 MB / 0.5703 GB, free: 10.49 MB / 446.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 (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,11,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0007274/0.6673, allocations: 256.1 kB / 0.5705 GB, free: 10.23 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.007162/0.6745, allocations: 3.964 MB / 0.5744 GB, free: 6.16 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.428e-06/0.6745, allocations: 1 kB / 0.5744 GB, free: 6.16 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004421/0.679, allocations: 2.668 MB / 0.577 GB, free: 3.395 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004695/0.6837, allocations: 0.8375 MB / 0.5778 GB, free: 2.555 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01703/0.7007, allocations: 9.637 MB / 0.5873 GB, free: 8.844 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003921/0.7047, allocations: 3.298 MB / 0.5905 GB, free: 5.508 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002685/0.7074, allocations: 0.7578 MB / 0.5912 GB, free: 4.746 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007914/0.7082, allocations: 231.4 kB / 0.5914 GB, free: 4.52 MB / 462.1 MB Notification: Performance of SimCode: time 9.92e-07/0.7082, allocations: 0 / 0.5914 GB, free: 4.52 MB / 462.1 MB Notification: Performance of Templates: time 0.2798/0.9881, allocations: 45.33 MB / 0.6357 GB, free: 156.4 MB / 494.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)