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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001162/0.001162, allocations: 187.8 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.434/1.434, allocations: 194.3 MB / 203.1 MB, free: 9.316 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001763/0.001763, allocations: 118.4 kB / 248.1 MB, free: 6.328 MB / 203.1 MB Notification: Performance of FrontEnd - loaded program: time 1.848e-05/1.849e-05, allocations: 4 kB / 298.1 MB, free: 8.234 MB / 251.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09297/0.09302, allocations: 44.5 MB / 342.6 MB, free: 11.64 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3426/0.4357, allocations: 118.9 MB / 461.5 MB, free: 9.652 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003204/0.4361, allocations: 86.7 kB / 461.6 MB, free: 9.609 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4904/0.9265, allocations: 114 MB / 0.5621 GB, free: 70.86 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.9265, allocations: 0 / 0.5621 GB, free: 70.86 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0004551/0.927, allocations: 128.3 kB / 0.5622 GB, free: 70.84 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1340 * Number of variables: 1340 Notification: Performance of Generate backend data structure: time 0.01462/0.9416, allocations: 4.859 MB / 0.5669 GB, free: 68.98 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.9417, allocations: 14.41 kB / 0.5669 GB, free: 68.98 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00568/0.9474, allocations: 0.9436 MB / 0.5679 GB, free: 68.67 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01152/0.9589, allocations: 4.359 MB / 0.5721 GB, free: 67.84 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003153/0.9593, allocations: 166.6 kB / 0.5723 GB, free: 67.84 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001779/0.9611, allocations: 309.1 kB / 0.5726 GB, free: 67.83 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01103/0.9721, allocations: 4.894 MB / 0.5774 GB, free: 65.98 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01676/0.9889, allocations: 5.79 MB / 0.583 GB, free: 63.37 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002125/0.9892, allocations: 7.25 kB / 0.583 GB, free: 63.37 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001194/0.9904, allocations: 6.406 kB / 0.583 GB, free: 63.37 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002192/0.9906, allocations: 233.7 kB / 0.5832 GB, free: 63.34 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03802/1.029, allocations: 20.05 MB / 0.6028 GB, free: 52.68 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007007/1.036, allocations: 8.366 MB / 0.611 GB, free: 45.4 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002969/1.039, allocations: 1.925 MB / 0.6129 GB, free: 44.65 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01085/1.05, allocations: 5.82 MB / 0.6186 GB, free: 41.73 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.634e-05/1.05, allocations: 59.81 kB / 0.6186 GB, free: 41.67 MB / 395.1 MB Notification: Performance of pre-optimization done (n=209): time 4.237e-06/1.05, allocations: 0 / 0.6186 GB, free: 41.67 MB / 395.1 MB Notification: Performance of matching and sorting (n=233): time 0.01545/1.065, allocations: 8.124 MB / 0.6265 GB, free: 34.43 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.51e-05/1.065, allocations: 81.39 kB / 0.6266 GB, free: 34.34 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004678/1.07, allocations: 2.018 MB / 0.6286 GB, free: 32.31 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000328/1.07, allocations: 33.7 kB / 0.6286 GB, free: 32.27 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001579/1.072, allocations: 2.324 MB / 0.6309 GB, free: 29.92 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007364/1.073, allocations: 0.7737 MB / 0.6317 GB, free: 29.13 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002546/1.073, allocations: 0 / 0.6317 GB, free: 29.13 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001936/1.073, allocations: 420.1 kB / 0.6321 GB, free: 28.71 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001625/1.075, allocations: 1.189 MB / 0.6332 GB, free: 27.52 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001911/1.077, allocations: 2.049 MB / 0.6352 GB, free: 25.09 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002509/1.079, allocations: 1.681 MB / 0.6369 GB, free: 23.38 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-05/1.079, allocations: 8 kB / 0.6369 GB, free: 23.38 MB / 395.1 MB Notification: Performance of matching and sorting (n=380) (initialization): time 0.006555/1.086, allocations: 4.258 MB / 0.641 GB, free: 19.03 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.172e-05/1.086, allocations: 19.98 kB / 0.641 GB, free: 19.01 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.267e-05/1.086, allocations: 28 kB / 0.6411 GB, free: 18.98 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001499/1.087, allocations: 0.7063 MB / 0.6418 GB, free: 18.26 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002383/1.09, allocations: 0.6825 MB / 0.6424 GB, free: 17.58 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007386/1.097, allocations: 8.997 MB / 0.6512 GB, free: 8.117 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003224/1.1, allocations: 127.7 kB / 0.6513 GB, free: 7.992 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006569/1.101, allocations: 128 kB / 0.6515 GB, free: 7.867 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 125 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (344): * Single equations (assignments): 338 * 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: 4 * 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: 4 {(6,72.2%) 22,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008877/1.102, allocations: 191.8 kB / 0.6516 GB, free: 7.672 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008362/1.103, allocations: 284.5 kB / 0.6519 GB, free: 7.391 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006687/1.109, allocations: 3.885 MB / 0.6557 GB, free: 3.426 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.481e-05/1.11, allocations: 24 kB / 0.6557 GB, free: 3.402 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.058e-05/1.11, allocations: 12 kB / 0.6557 GB, free: 3.391 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.153e-05/1.11, allocations: 11.95 kB / 0.6558 GB, free: 3.379 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2447/1.354, allocations: 7.892 MB / 0.6635 GB, free: 64.37 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.828e-06/1.354, allocations: 3.688 kB / 0.6635 GB, free: 64.37 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001508/1.356, allocations: 374.9 kB / 0.6638 GB, free: 64.37 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002112/1.358, allocations: 0.9169 MB / 0.6647 GB, free: 64.31 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001681/1.358, allocations: 32.92 kB / 0.6647 GB, free: 64.31 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0126/1.371, allocations: 14.85 MB / 0.6792 GB, free: 55.81 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/1.371, allocations: 3.25 kB / 0.6792 GB, free: 55.81 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008696/1.38, allocations: 5.804 MB / 0.6849 GB, free: 54.93 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001724/1.381, allocations: 0.6249 MB / 0.6855 GB, free: 54.83 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004479/1.382, allocations: 19.97 kB / 0.6855 GB, free: 54.83 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00156/1.383, allocations: 109.2 kB / 0.6857 GB, free: 54.83 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005034/1.384, allocations: 183.2 kB / 0.6858 GB, free: 54.82 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001726/1.384, allocations: 65.34 kB / 0.6859 GB, free: 54.82 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.002771/1.387, allocations: 1.494 MB / 0.6873 GB, free: 54.68 MB / 395.1 MB Notification: Performance of sort global known variables: time 6.11e-07/1.387, allocations: 0 / 0.6873 GB, free: 54.68 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.00375/1.391, allocations: 0.885 MB / 0.6882 GB, free: 54.68 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (177): * Single equations (assignments): 170 * 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,75.0%) 22,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 4,(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.0007953/1.391, allocations: 409.8 kB / 0.6886 GB, free: 54.59 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.005846/1.397, allocations: 3.743 MB / 0.6923 GB, free: 53.92 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/1.397, allocations: 3.906 kB / 0.6923 GB, free: 53.92 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004229/1.401, allocations: 2.571 MB / 0.6948 GB, free: 53.16 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003662/1.405, allocations: 0.5755 MB / 0.6953 GB, free: 53.14 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01567/1.421, allocations: 7.695 MB / 0.7028 GB, free: 51.14 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003124/1.424, allocations: 3.391 MB / 0.7062 GB, free: 50.29 MB / 395.1 MB Notification: Performance of simCode: alias equations: time 0.00266/1.427, allocations: 0.7146 MB / 0.7069 GB, free: 50.21 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005365/1.427, allocations: 202.2 kB / 0.7071 GB, free: 50.21 MB / 395.1 MB Notification: Performance of SimCode: time 9.22e-07/1.427, allocations: 0 / 0.7071 GB, free: 50.21 MB / 395.1 MB Notification: Performance of Templates: time 0.06172/1.489, allocations: 38.99 MB / 0.7451 GB, free: 47.54 MB / 395.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)