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.007302/0.007302, allocations: 102 kB / 15.73 MB, free: 6.477 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.001286/0.001286, allocations: 192.6 kB / 16.67 MB, free: 6.391 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.413/1.413, allocations: 205.1 MB / 222.6 MB, free: 4.578 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.001142/0.001142, allocations: 49.73 kB / 326.6 MB, free: 14.24 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1212, allocations: 46.63 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter): time 0.02325/0.1445, allocations: 20.22 MB / 393.4 MB, free: 13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01364/0.1582, allocations: 5.939 MB / 399.4 MB, free: 7.043 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003758/0.162, allocations: 123.4 kB / 399.5 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004375/0.1664, allocations: 1.346 MB / 400.8 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006854/0.1733, allocations: 1.914 MB / 402.7 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003795/0.1771, allocations: 1.236 MB / 404 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.008725/0.1859, allocations: 6.122 MB / 410.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009476/0.1954, allocations: 5.347 MB / 415.4 MB, free: 6.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005626/0.2011, allocations: 2.823 MB / 418.3 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006294/0.2074, allocations: 3.39 MB / 421.7 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002475/0.2099, allocations: 0.7813 MB / 422.4 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003848/0.2138, allocations: 1.066 MB / 423.5 MB, free: 14.74 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003182/0.217, allocations: 1.948 MB / 425.4 MB, free: 12.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006866/0.2239, allocations: 3.353 MB / 428.8 MB, free: 9.418 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01313/0.237, allocations: 10.29 MB / 439.1 MB, free: 15.1 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.2371, allocations: 0 / 439.1 MB, free: 15.1 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2371, allocations: 0 / 439.1 MB, free: 15.1 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003553/0.2375, allocations: 4 kB / 439.1 MB, free: 15.09 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.02021/0.2577, allocations: 6.581 MB / 445.7 MB, free: 8.43 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.2578, allocations: 8.031 kB / 445.7 MB, free: 8.422 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005031/0.2628, allocations: 1.009 MB / 446.7 MB, free: 7.406 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00768/0.2705, allocations: 3.345 MB / 450 MB, free: 3.984 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003603/0.2709, allocations: 386.6 kB / 450.4 MB, free: 3.605 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001799/0.2727, allocations: 0.5077 MB / 450.9 MB, free: 3.098 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2664/0.5391, allocations: 6.76 MB / 457.7 MB, free: 63.03 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001939/0.5394, allocations: 13.61 kB / 457.7 MB, free: 63.03 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007489/0.5401, allocations: 210.1 kB / 457.9 MB, free: 62.88 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003073/0.5404, allocations: 244 kB / 458.1 MB, free: 62.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.014/0.5544, allocations: 5.737 MB / 463.9 MB, free: 60.71 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03666/0.5912, allocations: 20.83 MB / 484.7 MB, free: 46.46 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00641/0.5976, allocations: 8.563 MB / 493.3 MB, free: 38.69 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002853/0.6005, allocations: 2.081 MB / 495.4 MB, free: 37.29 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00932/0.6098, allocations: 5.916 MB / 0.4895 GB, free: 31.33 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.6099, allocations: 56.5 kB / 0.4896 GB, free: 31.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=205): time 3.957e-06/0.6099, allocations: 0 / 0.4896 GB, free: 31.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=222): time 0.01767/0.6276, allocations: 10.28 MB / 0.4996 GB, free: 20.77 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/0.6277, allocations: 81.33 kB / 0.4997 GB, free: 20.68 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004205/0.6319, allocations: 2.9 MB / 0.5025 GB, free: 17.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003188/0.6322, allocations: 61.7 kB / 0.5026 GB, free: 17.7 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001153/0.6334, allocations: 2.352 MB / 0.5049 GB, free: 15.33 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006434/0.634, allocations: 0.773 MB / 0.5056 GB, free: 14.57 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006838/0.6347, allocations: 0.5137 MB / 0.5061 GB, free: 14.04 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.867e-05/0.6348, allocations: 305.1 kB / 0.5064 GB, free: 13.74 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001733/0.6365, allocations: 1.267 MB / 0.5077 GB, free: 12.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00195/0.6385, allocations: 2.182 MB / 0.5098 GB, free: 9.891 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003731/0.6422, allocations: 3.665 MB / 0.5134 GB, free: 5.828 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-05/0.6422, allocations: 11.94 kB / 0.5134 GB, free: 5.816 MB / 382.1 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.0061/0.6483, allocations: 4.442 MB / 0.5177 GB, free: 1.305 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.246e-05/0.6484, allocations: 23.97 kB / 0.5177 GB, free: 1.281 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.659e-05/0.6485, allocations: 28 kB / 0.5178 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001051/0.6495, allocations: 0.5137 MB / 0.5183 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002399/0.6519, allocations: 0.6864 MB / 0.5189 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009092/0.661, allocations: 10.19 MB / 0.5289 GB, free: 5.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0029/0.664, allocations: 179.7 kB / 0.5291 GB, free: 4.984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005014/0.6645, allocations: 131.9 kB / 0.5292 GB, free: 4.855 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.003057/0.6676, allocations: 1.508 MB / 0.5307 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008488/0.6684, allocations: 328 kB / 0.531 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006839/0.6753, allocations: 3.873 MB / 0.5348 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2e-05/0.6753, allocations: 20 kB / 0.5348 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.018e-05/0.6753, allocations: 15.94 kB / 0.5348 GB, free: 15 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.718e-05/0.6754, allocations: 15.95 kB / 0.5348 GB, free: 14.99 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01684/0.6922, allocations: 8.462 MB / 0.5431 GB, free: 6.383 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/0.6923, allocations: 0 / 0.5431 GB, free: 6.383 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001671/0.6939, allocations: 387.9 kB / 0.5434 GB, free: 6.004 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001957/0.6959, allocations: 0.7265 MB / 0.5442 GB, free: 5.254 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001955/0.6961, allocations: 59.97 kB / 0.5442 GB, free: 5.195 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01583/0.712, allocations: 16.61 MB / 0.5604 GB, free: 3.5 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.221e-06/0.712, allocations: 8.172 kB / 0.5604 GB, free: 3.492 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009345/0.7214, allocations: 5.564 MB / 0.5659 GB, free: 13.79 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002001/0.7234, allocations: 0.6532 MB / 0.5665 GB, free: 13.11 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005139/0.724, allocations: 55.98 kB / 0.5666 GB, free: 13.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001586/0.7256, allocations: 135.9 kB / 0.5667 GB, free: 12.92 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004413/0.726, allocations: 173.6 kB / 0.5669 GB, free: 12.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001359/0.7261, allocations: 59.98 kB / 0.5669 GB, free: 12.69 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002915/0.7291, allocations: 1.963 MB / 0.5688 GB, free: 10.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.61e-07/0.7291, allocations: 4 kB / 0.5688 GB, free: 10.73 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003251/0.7323, allocations: 0.9349 MB / 0.5698 GB, free: 9.797 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.0005782/0.7329, allocations: 247 kB / 0.57 GB, free: 9.547 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006384/0.7393, allocations: 3.966 MB / 0.5739 GB, free: 5.48 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.166e-06/0.7394, allocations: 5 kB / 0.5739 GB, free: 5.477 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004185/0.7435, allocations: 2.656 MB / 0.5765 GB, free: 2.723 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00448/0.7481, allocations: 0.8375 MB / 0.5773 GB, free: 1.883 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01718/0.7653, allocations: 9.477 MB / 0.5865 GB, free: 8.355 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003349/0.7687, allocations: 3.293 MB / 0.5897 GB, free: 5.027 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002818/0.7715, allocations: 0.7578 MB / 0.5905 GB, free: 4.266 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009034/0.7724, allocations: 231.4 kB / 0.5907 GB, free: 4.039 MB / 462.1 MB Notification: Performance of SimCode: time 1.433e-06/0.7724, allocations: 0 / 0.5907 GB, free: 4.039 MB / 462.1 MB Notification: Performance of Templates: time 0.2988/1.071, allocations: 45.34 MB / 0.635 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)