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.001372/0.001372, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001849/0.001849, allocations: 190.7 kB / 16.25 MB, free: 6.625 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.385/1.385, allocations: 205.1 MB / 222.1 MB, free: 4.715 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.001232/0.001232, allocations: 55.91 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1997/0.2009, allocations: 46.63 MB / 324.9 MB, free: 2.184 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz): time 0.01391/0.2149, allocations: 13.43 MB / 338.3 MB, free: 6.797 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008897/0.2238, allocations: 4.366 MB / 342.6 MB, free: 2.418 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00329/0.2272, allocations: 67.69 kB / 342.7 MB, free: 2.352 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00315/0.2304, allocations: 0.8707 MB / 343.6 MB, free: 1.477 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004434/0.2348, allocations: 1.181 MB / 344.8 MB, free: 296 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00221/0.237, allocations: 0.8226 MB / 345.6 MB, free: 15.46 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005396/0.2425, allocations: 4.239 MB / 349.8 MB, free: 11.21 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003388/0.2459, allocations: 3.193 MB / 353 MB, free: 7.941 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002217/0.2481, allocations: 1.779 MB / 354.8 MB, free: 6.156 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00253/0.2506, allocations: 2.059 MB / 356.9 MB, free: 4.09 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006935/0.2514, allocations: 0.5078 MB / 357.4 MB, free: 3.582 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001273/0.2526, allocations: 0.7107 MB / 358.1 MB, free: 2.871 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000838/0.2535, allocations: 1.118 MB / 359.2 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002067/0.2556, allocations: 2.132 MB / 361.3 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00567/0.2612, allocations: 6.625 MB / 368 MB, free: 8.965 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.2613, allocations: 0 / 368 MB, free: 8.965 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2613, allocations: 0 / 368 MB, free: 8.965 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001202/0.2614, allocations: 0 / 368 MB, free: 8.965 MB / 302.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.01065/0.2721, allocations: 4.39 MB / 372.3 MB, free: 4.504 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001198/0.2722, allocations: 12.03 kB / 372.4 MB, free: 4.492 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004375/0.2766, allocations: 0.8202 MB / 373.2 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004023/0.2806, allocations: 2.209 MB / 375.4 MB, free: 1.402 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001974/0.2809, allocations: 246.8 kB / 375.6 MB, free: 1.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006707/0.2815, allocations: 328 kB / 375.9 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007816/0.2894, allocations: 4.267 MB / 380.2 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-05/0.2895, allocations: 7.938 kB / 380.2 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002916/0.2898, allocations: 127.9 kB / 380.3 MB, free: 12.38 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001406/0.2899, allocations: 154.4 kB / 380.5 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006343/0.2963, allocations: 3.597 MB / 384.1 MB, free: 8.625 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0206/0.3169, allocations: 13.88 MB / 398 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00703/0.324, allocations: 6.575 MB / 404.5 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002375/0.3264, allocations: 1.386 MB / 405.9 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005987/0.3324, allocations: 3.624 MB / 409.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.088e-05/0.3325, allocations: 51.88 kB / 409.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=134): time 2.895e-06/0.3325, allocations: 3.938 kB / 409.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=137): time 0.01142/0.3439, allocations: 5.89 MB / 415.5 MB, free: 7.691 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.344, allocations: 64.72 kB / 415.6 MB, free: 7.613 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002554/0.3466, allocations: 1.78 MB / 417.3 MB, free: 5.832 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001064/0.3467, allocations: 49.7 kB / 417.4 MB, free: 5.777 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009445/0.3476, allocations: 1.438 MB / 418.8 MB, free: 4.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003823/0.348, allocations: 481.1 kB / 419.3 MB, free: 3.844 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000461/0.3485, allocations: 319.2 kB / 419.6 MB, free: 3.527 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.178e-05/0.3486, allocations: 301.1 kB / 419.9 MB, free: 3.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001055/0.3496, allocations: 0.6832 MB / 420.6 MB, free: 2.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001417/0.3511, allocations: 1.201 MB / 421.8 MB, free: 1.121 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002574/0.3537, allocations: 1.995 MB / 423.8 MB, free: 14.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.024e-05/0.3537, allocations: 7.984 kB / 423.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004265/0.358, allocations: 2.539 MB / 426.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.916e-05/0.358, allocations: 12 kB / 426.3 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.462e-05/0.358, allocations: 16.34 kB / 426.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009965/0.359, allocations: 368 kB / 426.7 MB, free: 11.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001443/0.3605, allocations: 379.4 kB / 427.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007915/0.3684, allocations: 8.415 MB / 435.5 MB, free: 2.566 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001703/0.3702, allocations: 75.95 kB / 435.6 MB, free: 2.492 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002443/0.3704, allocations: 72 kB / 435.6 MB, free: 2.422 MB / 366.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.001922/0.3724, allocations: 1.009 MB / 436.7 MB, free: 1.402 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005609/0.3729, allocations: 193.6 kB / 436.8 MB, free: 1.211 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004332/0.3773, allocations: 2.282 MB / 439.1 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.425e-05/0.3773, allocations: 20.19 kB / 439.1 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.37e-05/0.3773, allocations: 8 kB / 439.2 MB, free: 14.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-05/0.3774, allocations: 11.91 kB / 439.2 MB, free: 14.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00902/0.3864, allocations: 5.075 MB / 444.2 MB, free: 9.609 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/0.3864, allocations: 4 kB / 444.2 MB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008181/0.3873, allocations: 171.8 kB / 444.4 MB, free: 9.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001446/0.3887, allocations: 0.536 MB / 444.9 MB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.3888, allocations: 39.92 kB / 445 MB, free: 8.844 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.153/0.5418, allocations: 13.23 MB / 458.2 MB, free: 105.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.5419, allocations: 1.406 kB / 458.2 MB, free: 105.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005185/0.5471, allocations: 3.215 MB / 461.4 MB, free: 104.6 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008433/0.5479, allocations: 429.6 kB / 461.9 MB, free: 104.4 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004496/0.5484, allocations: 40.86 kB / 461.9 MB, free: 104.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.5495, allocations: 62.86 kB / 462 MB, free: 104.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002773/0.5498, allocations: 104.9 kB / 462.1 MB, free: 104.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.972e-05/0.5499, allocations: 41.33 kB / 462.1 MB, free: 104.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002042/0.5519, allocations: 1.22 MB / 463.3 MB, free: 103.8 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5519, allocations: 3.594 kB / 463.3 MB, free: 103.8 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002205/0.5542, allocations: 0.5797 MB / 463.9 MB, free: 103.8 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.0003007/0.5545, allocations: 163.2 kB / 464.1 MB, free: 103.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004159/0.5586, allocations: 2.69 MB / 466.7 MB, free: 102.4 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.5587, allocations: 3.969 kB / 466.8 MB, free: 102.4 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002145/0.5608, allocations: 1.752 MB / 468.5 MB, free: 101.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002278/0.5631, allocations: 0.5362 MB / 469 MB, free: 101.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009068/0.5722, allocations: 7.242 MB / 476.3 MB, free: 96.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00207/0.5743, allocations: 2.31 MB / 478.6 MB, free: 94.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001486/0.5758, allocations: 395.8 kB / 479 MB, free: 94.59 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004043/0.5762, allocations: 123.3 kB / 479.1 MB, free: 94.48 MB / 382.1 MB Notification: Performance of SimCode: time 7.21e-07/0.5762, allocations: 0 / 479.1 MB, free: 94.48 MB / 382.1 MB Notification: Performance of Templates: time 0.04366/0.6199, allocations: 29.66 MB / 0.4968 GB, free: 64.99 MB / 382.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)