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.005615/0.005615, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001255/0.001255, allocations: 197.1 kB / 16.68 MB, free: 5.93 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.482/1.482, 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.001206/0.001206, allocations: 54.7 kB / 326.6 MB, free: 14.48 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09798/0.0992, allocations: 46.62 MB / 373.2 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02184/0.1211, allocations: 20.21 MB / 393.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01389/0.135, allocations: 5.951 MB / 399.4 MB, free: 7.148 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003978/0.1391, allocations: 115.5 kB / 399.5 MB, free: 7.035 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005026/0.1441, allocations: 1.397 MB / 400.9 MB, free: 5.629 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007841/0.152, allocations: 1.98 MB / 402.8 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00477/0.1568, allocations: 1.248 MB / 404.1 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01026/0.1671, allocations: 6.122 MB / 410.2 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009938/0.1771, allocations: 5.351 MB / 415.6 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006389/0.1835, allocations: 2.843 MB / 418.4 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007035/0.1906, allocations: 3.394 MB / 421.8 MB, free: 0.543 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002727/0.1934, allocations: 0.7813 MB / 422.6 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004653/0.198, allocations: 1.062 MB / 423.6 MB, free: 14.7 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003514/0.2016, allocations: 1.944 MB / 425.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00665/0.2083, allocations: 3.353 MB / 428.9 MB, free: 9.383 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01407/0.2224, allocations: 10.29 MB / 439.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.2224, allocations: 0 / 439.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.2224, allocations: 0 / 439.2 MB, free: 15.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003777/0.2228, allocations: 0 / 439.2 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.02176/0.2446, allocations: 6.589 MB / 445.8 MB, free: 8.387 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.2446, allocations: 12.03 kB / 445.8 MB, free: 8.375 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005744/0.2504, allocations: 1.009 MB / 446.8 MB, free: 7.359 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008979/0.2594, allocations: 3.341 MB / 450.2 MB, free: 3.941 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004902/0.2599, allocations: 382.6 kB / 450.6 MB, free: 3.566 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00185/0.2618, allocations: 0.5077 MB / 451.1 MB, free: 3.059 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2371/0.4989, allocations: 6.765 MB / 457.8 MB, free: 62.97 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001615/0.4991, allocations: 14.7 kB / 457.9 MB, free: 62.97 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005523/0.4997, allocations: 210.4 kB / 458.1 MB, free: 62.81 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000278/0.4999, allocations: 239.1 kB / 458.3 MB, free: 62.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01391/0.5139, allocations: 5.738 MB / 464 MB, free: 60.64 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03427/0.5482, allocations: 20.84 MB / 484.9 MB, free: 46.41 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00646/0.5547, allocations: 8.555 MB / 493.4 MB, free: 38.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002695/0.5574, allocations: 2.083 MB / 495.5 MB, free: 37.24 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009044/0.5665, allocations: 5.923 MB / 0.4897 GB, free: 31.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.373e-05/0.5666, allocations: 56.56 kB / 0.4897 GB, free: 31.2 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 5.069e-06/0.5666, allocations: 4 kB / 0.4897 GB, free: 31.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.01784/0.5844, allocations: 10.27 MB / 0.4998 GB, free: 20.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.085e-05/0.5845, allocations: 73.41 kB / 0.4998 GB, free: 20.64 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003475/0.588, allocations: 2.908 MB / 0.5027 GB, free: 17.72 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001611/0.5881, allocations: 65.7 kB / 0.5027 GB, free: 17.65 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001058/0.5892, allocations: 2.352 MB / 0.505 GB, free: 15.28 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004168/0.5896, allocations: 0.7657 MB / 0.5058 GB, free: 14.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006461/0.5903, allocations: 0.5137 MB / 0.5063 GB, free: 14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.361e-05/0.5903, allocations: 301.1 kB / 0.5066 GB, free: 13.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001665/0.592, allocations: 1.271 MB / 0.5078 GB, free: 12.43 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001982/0.594, allocations: 2.185 MB / 0.5099 GB, free: 9.844 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003963/0.598, allocations: 3.661 MB / 0.5135 GB, free: 5.785 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.03e-05/0.598, allocations: 11.94 kB / 0.5135 GB, free: 5.773 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.006236/0.6042, allocations: 4.446 MB / 0.5179 GB, free: 1.258 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.283e-05/0.6043, allocations: 16 kB / 0.5179 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.86e-05/0.6043, allocations: 28 kB / 0.5179 GB, free: 1.215 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/0.6054, allocations: 0.5181 MB / 0.5184 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002414/0.6078, allocations: 0.6904 MB / 0.5191 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009354/0.6172, allocations: 10.19 MB / 0.529 GB, free: 5.105 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002905/0.6201, allocations: 171.8 kB / 0.5292 GB, free: 4.938 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003256/0.6205, allocations: 123.9 kB / 0.5293 GB, free: 4.816 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.002844/0.6233, allocations: 1.524 MB / 0.5308 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007972/0.6241, allocations: 324.1 kB / 0.5311 GB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006951/0.6311, allocations: 3.875 MB / 0.5349 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-05/0.6312, allocations: 24 kB / 0.5349 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-05/0.6312, allocations: 11.94 kB / 0.5349 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.106e-05/0.6312, allocations: 11.95 kB / 0.535 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01493/0.6461, allocations: 8.462 MB / 0.5432 GB, free: 6.34 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-05/0.6462, allocations: 8.031 kB / 0.5432 GB, free: 6.332 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001704/0.6479, allocations: 387.4 kB / 0.5436 GB, free: 5.953 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001824/0.6497, allocations: 0.7225 MB / 0.5443 GB, free: 5.207 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001541/0.6499, allocations: 59.97 kB / 0.5444 GB, free: 5.148 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01472/0.6646, allocations: 16.61 MB / 0.5606 GB, free: 3.449 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.173e-06/0.6647, allocations: 4.078 kB / 0.5606 GB, free: 3.445 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009246/0.6739, allocations: 5.556 MB / 0.566 GB, free: 13.74 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001888/0.6758, allocations: 0.6532 MB / 0.5667 GB, free: 13.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000584/0.6764, allocations: 55.98 kB / 0.5667 GB, free: 13.01 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001619/0.6781, allocations: 135.9 kB / 0.5668 GB, free: 12.88 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000553/0.6786, allocations: 173.6 kB / 0.567 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001406/0.6788, allocations: 59.98 kB / 0.5671 GB, free: 12.65 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003375/0.6822, allocations: 1.964 MB / 0.569 GB, free: 10.69 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6822, allocations: 4 kB / 0.569 GB, free: 10.68 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003785/0.686, allocations: 0.9323 MB / 0.5699 GB, free: 9.754 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.0005752/0.6866, allocations: 253.8 kB / 0.5701 GB, free: 9.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006504/0.6931, allocations: 3.971 MB / 0.574 GB, free: 5.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.582e-06/0.6931, allocations: 4.188 kB / 0.574 GB, free: 5.426 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004173/0.6973, allocations: 2.645 MB / 0.5766 GB, free: 2.688 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004546/0.7018, allocations: 0.8389 MB / 0.5774 GB, free: 1.848 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01775/0.7196, allocations: 9.477 MB / 0.5867 GB, free: 8.32 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003403/0.723, allocations: 3.301 MB / 0.5899 GB, free: 4.984 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002627/0.7257, allocations: 0.7617 MB / 0.5906 GB, free: 4.219 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006385/0.7263, allocations: 223.4 kB / 0.5909 GB, free: 4 MB / 462.1 MB Notification: Performance of SimCode: time 1.292e-06/0.7264, allocations: 0 / 0.5909 GB, free: 4 MB / 462.1 MB Notification: Performance of Templates: time 0.2986/1.025, allocations: 45.34 MB / 0.6351 GB, free: 156.1 MB / 494.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)