Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001244/0.001244, allocations: 110.5 kB / 17.06 MB, free: 6.141 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.001221/0.001221, allocations: 192 kB / 18 MB, free: 5.219 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.393/1.393, allocations: 205.1 MB / 223.9 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.002366/0.002366, allocations: 55.92 kB / 327.9 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1372/0.1396, allocations: 46.62 MB / 374.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.2089/0.3486, allocations: 20.22 MB / 394.7 MB, free: 1.121 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01592/0.3646, allocations: 5.939 MB / 400.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005645/0.3704, allocations: 121 kB / 400.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006098/0.3765, allocations: 1.395 MB / 402.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01073/0.3873, allocations: 1.978 MB / 404.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00564/0.393, allocations: 1.248 MB / 405.4 MB, free: 9.863 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01482/0.4078, allocations: 6.112 MB / 411.5 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01169/0.4196, allocations: 5.368 MB / 416.9 MB, free: 3.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007091/0.4267, allocations: 2.835 MB / 419.7 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008084/0.4348, allocations: 3.391 MB / 423.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003048/0.4379, allocations: 0.7852 MB / 423.9 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004676/0.4426, allocations: 1.066 MB / 425 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003521/0.4462, allocations: 1.94 MB / 426.9 MB, free: 11.24 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007848/0.4541, allocations: 3.349 MB / 430.3 MB, free: 7.879 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01849/0.4726, allocations: 10.3 MB / 440.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.4726, allocations: 0 / 440.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.4726, allocations: 0 / 440.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004234/0.4731, allocations: 0 / 440.6 MB, free: 13.54 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: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.02341/0.4965, allocations: 6.586 MB / 447.1 MB, free: 6.875 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.4966, allocations: 16.02 kB / 447.2 MB, free: 6.859 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006213/0.5028, allocations: 0.9973 MB / 448.2 MB, free: 5.855 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008682/0.5115, allocations: 3.349 MB / 451.5 MB, free: 2.43 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004533/0.512, allocations: 386.6 kB / 451.9 MB, free: 2.051 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001978/0.514, allocations: 0.5002 MB / 452.4 MB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01784/0.5318, allocations: 6.786 MB / 459.2 MB, free: 10.7 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002998/0.5322, allocations: 7.906 kB / 459.2 MB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001696/0.5339, allocations: 212 kB / 459.4 MB, free: 10.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002989/0.5342, allocations: 246.2 kB / 459.6 MB, free: 10.24 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01669/0.5509, allocations: 5.732 MB / 465.4 MB, free: 4.496 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04227/0.5933, allocations: 20.83 MB / 486.2 MB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008608/0.6019, allocations: 8.543 MB / 494.7 MB, free: 5.66 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003517/0.6055, allocations: 2.093 MB / 496.8 MB, free: 3.562 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01185/0.6173, allocations: 5.915 MB / 0.491 GB, free: 13.51 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.018e-05/0.6174, allocations: 56.56 kB / 0.491 GB, free: 13.45 MB / 430.1 MB Notification: Performance of pre-optimization done (n=205): time 6.312e-06/0.6174, allocations: 0 / 0.491 GB, free: 13.45 MB / 430.1 MB Notification: Performance of matching and sorting (n=222): time 0.02205/0.6395, allocations: 10.27 MB / 0.501 GB, free: 2.938 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.796e-05/0.6396, allocations: 73.41 kB / 0.5011 GB, free: 2.855 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006346/0.646, allocations: 2.908 MB / 0.504 GB, free: 15.94 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002947/0.6463, allocations: 65.7 kB / 0.504 GB, free: 15.87 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00181/0.6481, allocations: 2.357 MB / 0.5063 GB, free: 13.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007399/0.6489, allocations: 0.7664 MB / 0.5071 GB, free: 12.71 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009162/0.6498, allocations: 0.5138 MB / 0.5076 GB, free: 12.18 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.154e-05/0.6499, allocations: 305.1 kB / 0.5079 GB, free: 11.88 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002131/0.652, allocations: 1.271 MB / 0.5091 GB, free: 10.61 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002678/0.6547, allocations: 2.179 MB / 0.5112 GB, free: 8.027 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005089/0.6598, allocations: 3.672 MB / 0.5148 GB, free: 3.957 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.118e-05/0.6599, allocations: 8 kB / 0.5148 GB, free: 3.949 MB / 446.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.008567/0.6684, allocations: 4.442 MB / 0.5192 GB, free: 15.43 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.194e-05/0.6685, allocations: 19.28 kB / 0.5192 GB, free: 15.42 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.55e-05/0.6686, allocations: 32 kB / 0.5192 GB, free: 15.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00124/0.6698, allocations: 0.5135 MB / 0.5197 GB, free: 14.85 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002525/0.6724, allocations: 0.6942 MB / 0.5204 GB, free: 14.16 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009189/0.6816, allocations: 10.19 MB / 0.5303 GB, free: 3.273 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002988/0.6846, allocations: 171.8 kB / 0.5305 GB, free: 3.105 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005201/0.6851, allocations: 132 kB / 0.5306 GB, free: 2.977 MB / 462.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.003625/0.6887, allocations: 1.52 MB / 0.5321 GB, free: 1.445 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009902/0.6897, allocations: 320 kB / 0.5324 GB, free: 1.129 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007259/0.697, allocations: 3.867 MB / 0.5362 GB, free: 13.16 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.848e-05/0.6971, allocations: 23.94 kB / 0.5362 GB, free: 13.14 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.679e-05/0.6971, allocations: 8 kB / 0.5362 GB, free: 13.13 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.623e-05/0.6971, allocations: 15.89 kB / 0.5362 GB, free: 13.11 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01654/0.7137, allocations: 8.471 MB / 0.5445 GB, free: 4.453 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/0.7137, allocations: 4.469 kB / 0.5445 GB, free: 4.449 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001653/0.7154, allocations: 383.4 kB / 0.5449 GB, free: 4.074 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002046/0.7174, allocations: 0.7249 MB / 0.5456 GB, free: 3.324 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002302/0.7177, allocations: 59.97 kB / 0.5456 GB, free: 3.266 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2519/0.9696, allocations: 16.6 MB / 0.5619 GB, free: 136.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/0.9697, allocations: 7.641 kB / 0.5619 GB, free: 136.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.014/0.9837, allocations: 5.558 MB / 0.5673 GB, free: 134.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00265/0.9864, allocations: 0.6485 MB / 0.5679 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001255/0.9876, allocations: 52.69 kB / 0.568 GB, free: 134 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003056/0.9907, allocations: 137 kB / 0.5681 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008521/0.9916, allocations: 172 kB / 0.5683 GB, free: 133.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003834/0.992, allocations: 65.31 kB / 0.5683 GB, free: 133.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007079/0.9991, allocations: 1.964 MB / 0.5703 GB, free: 133.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 8.62e-07/0.9992, allocations: 0 / 0.5703 GB, free: 133.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007021/1.006, allocations: 0.9354 MB / 0.5712 GB, free: 133.1 MB / 478.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.001041/1.007, allocations: 251.2 kB / 0.5714 GB, free: 132.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01106/1.018, allocations: 3.964 MB / 0.5753 GB, free: 131 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.246e-05/1.018, allocations: 4.75 kB / 0.5753 GB, free: 131 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006074/1.024, allocations: 2.653 MB / 0.5779 GB, free: 129.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007813/1.032, allocations: 0.8538 MB / 0.5787 GB, free: 129.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02521/1.058, allocations: 9.466 MB / 0.588 GB, free: 124.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004036/1.062, allocations: 3.302 MB / 0.5912 GB, free: 123.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002879/1.065, allocations: 0.7574 MB / 0.5919 GB, free: 123.3 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006477/1.065, allocations: 219.6 kB / 0.5921 GB, free: 123.2 MB / 478.1 MB Notification: Performance of SimCode: time 7.92e-07/1.065, allocations: 3.172 kB / 0.5921 GB, free: 123.2 MB / 478.1 MB Notification: Performance of Templates: time 0.06714/1.132, allocations: 45.37 MB / 0.6364 GB, free: 80.67 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter.pipe 2>&1)