Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.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.AIMC_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005711/0.005711, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.001222/0.001222, allocations: 191.5 kB / 16.67 MB, free: 5.969 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.532/1.532, allocations: 205.1 MB / 222.5 MB, free: 4.527 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.001163/0.001163, allocations: 46.11 kB / 326.6 MB, free: 14.37 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08968/0.09086, allocations: 46.63 MB / 373.2 MB, free: 1.297 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz): time 0.01516/0.1061, allocations: 13.57 MB / 386.8 MB, free: 3.656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009098/0.1152, allocations: 4.427 MB / 391.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002342/0.1176, allocations: 71.69 kB / 391.3 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002795/0.1204, allocations: 1.002 MB / 392.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004208/0.1247, allocations: 1.305 MB / 393.6 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002156/0.1268, allocations: 0.9003 MB / 394.5 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00494/0.1318, allocations: 4.11 MB / 398.6 MB, free: 7.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003554/0.1354, allocations: 3.193 MB / 401.8 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002756/0.1381, allocations: 1.885 MB / 403.7 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002795/0.1409, allocations: 2.09 MB / 405.7 MB, free: 0.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007675/0.1417, allocations: 0.5078 MB / 406.3 MB, free: 36 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001424/0.1431, allocations: 0.7068 MB / 407 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008668/0.144, allocations: 1.118 MB / 408.1 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002058/0.1461, allocations: 2.136 MB / 410.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006678/0.1528, allocations: 6.708 MB / 416.9 MB, free: 5.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.1528, allocations: 4 kB / 416.9 MB, free: 5.328 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1528, allocations: 4 kB / 416.9 MB, free: 5.324 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001503/0.153, allocations: 0 / 416.9 MB, free: 5.324 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.01154/0.1645, allocations: 4.495 MB / 421.4 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.1646, allocations: 12.03 kB / 421.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004358/0.169, allocations: 0.8328 MB / 422.3 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004306/0.1733, allocations: 2.293 MB / 424.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001937/0.1735, allocations: 246.8 kB / 424.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006506/0.1742, allocations: 321.3 kB / 425.1 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007844/0.182, allocations: 4.267 MB / 429.4 MB, free: 8.684 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.691e-05/0.1821, allocations: 4 kB / 429.4 MB, free: 8.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003066/0.1825, allocations: 135.9 kB / 429.5 MB, free: 8.547 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001412/0.1826, allocations: 150.4 kB / 429.7 MB, free: 8.398 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006231/0.1888, allocations: 3.597 MB / 433.3 MB, free: 4.793 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02044/0.2093, allocations: 13.75 MB / 447 MB, free: 6.668 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1984/0.4077, allocations: 6.555 MB / 453.6 MB, free: 66.51 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003215/0.411, allocations: 1.393 MB / 455 MB, free: 66.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007126/0.4181, allocations: 3.634 MB / 458.6 MB, free: 65.19 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.485e-05/0.4182, allocations: 50.59 kB / 458.6 MB, free: 65.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.075e-06/0.4182, allocations: 1.219 kB / 458.6 MB, free: 65.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01166/0.4299, allocations: 5.917 MB / 464.6 MB, free: 62.27 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/0.4299, allocations: 65.94 kB / 464.6 MB, free: 62.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002676/0.4326, allocations: 1.787 MB / 466.4 MB, free: 61.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.559e-05/0.4327, allocations: 50.17 kB / 466.5 MB, free: 61.47 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008441/0.4336, allocations: 1.478 MB / 467.9 MB, free: 60.54 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003155/0.4339, allocations: 496.1 kB / 468.4 MB, free: 60.19 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004432/0.4344, allocations: 323.1 kB / 468.7 MB, free: 60.03 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.937e-05/0.4344, allocations: 304.9 kB / 469 MB, free: 59.73 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001003/0.4354, allocations: 0.679 MB / 469.7 MB, free: 59.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001152/0.4366, allocations: 1.195 MB / 470.9 MB, free: 58.56 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002189/0.4388, allocations: 1.999 MB / 472.9 MB, free: 57.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/0.4388, allocations: 7.719 kB / 472.9 MB, free: 57.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.003632/0.4424, allocations: 2.551 MB / 475.5 MB, free: 56.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.703e-05/0.4425, allocations: 15.78 kB / 475.5 MB, free: 56.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.408e-05/0.4425, allocations: 24.55 kB / 475.5 MB, free: 56.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008918/0.4434, allocations: 362.1 kB / 475.9 MB, free: 55.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.4447, allocations: 380.5 kB / 476.2 MB, free: 55.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006324/0.451, allocations: 8.426 MB / 484.7 MB, free: 48.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002007/0.453, allocations: 71.19 kB / 484.7 MB, free: 48.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001892/0.4533, allocations: 75.33 kB / 484.8 MB, free: 48.5 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 2 (idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 187 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 4 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002138/0.4554, allocations: 1.005 MB / 485.8 MB, free: 47.81 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004848/0.4559, allocations: 205.1 kB / 486 MB, free: 47.7 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003778/0.4597, allocations: 2.282 MB / 488.3 MB, free: 46.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.296e-05/0.4597, allocations: 18.8 kB / 488.3 MB, free: 46.24 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.4597, allocations: 7.688 kB / 488.3 MB, free: 46.24 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/0.4597, allocations: 3.984 kB / 488.3 MB, free: 46.24 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006877/0.4666, allocations: 5.08 MB / 493.4 MB, free: 41.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.213e-06/0.4667, allocations: 8.188 kB / 493.4 MB, free: 41.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007386/0.4674, allocations: 179.7 kB / 493.6 MB, free: 41.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001235/0.4687, allocations: 0.5282 MB / 494.1 MB, free: 40.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.677e-05/0.4688, allocations: 39.92 kB / 494.2 MB, free: 40.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00897/0.4777, allocations: 13.23 MB / 0.4955 GB, free: 26.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.4778, allocations: 7.969 kB / 0.4955 GB, free: 26.92 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004635/0.4824, allocations: 3.222 MB / 0.4986 GB, free: 23.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008065/0.4833, allocations: 445.6 kB / 0.4991 GB, free: 23.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002262/0.4835, allocations: 32 kB / 0.4991 GB, free: 23.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000821/0.4843, allocations: 63.94 kB / 0.4992 GB, free: 23.06 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002757/0.4846, allocations: 105.2 kB / 0.4993 GB, free: 22.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.645e-05/0.4847, allocations: 43.98 kB / 0.4993 GB, free: 22.92 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001526/0.4862, allocations: 1.219 MB / 0.5005 GB, free: 21.71 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4862, allocations: 0 / 0.5005 GB, free: 21.71 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002128/0.4884, allocations: 0.5781 MB / 0.5011 GB, free: 21.13 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,7,100.0%), (2,8,100.0%), (1,1,100.0%), (1,13,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.0003242/0.4887, allocations: 165.6 kB / 0.5012 GB, free: 20.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003266/0.492, allocations: 2.365 MB / 0.5035 GB, free: 18.52 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.309e-06/0.492, allocations: 0.9375 kB / 0.5035 GB, free: 18.52 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00205/0.4941, allocations: 1.77 MB / 0.5053 GB, free: 16.68 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002473/0.4965, allocations: 0.5306 MB / 0.5058 GB, free: 16.16 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009559/0.5061, allocations: 5.914 MB / 0.5115 GB, free: 10.21 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001721/0.5079, allocations: 2.311 MB / 0.5138 GB, free: 7.875 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001245/0.5091, allocations: 401 kB / 0.5142 GB, free: 7.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000276/0.5094, allocations: 123.4 kB / 0.5143 GB, free: 7.363 MB / 382.1 MB Notification: Performance of SimCode: time 7.41e-07/0.5094, allocations: 0 / 0.5143 GB, free: 7.363 MB / 382.1 MB Notification: Performance of Templates: time 0.05046/0.5599, allocations: 30.24 MB / 0.5438 GB, free: 9.086 MB / 414.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe 2>&1)