Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001234/0.001234, allocations: 107.8 kB / 16.92 MB, free: 6.188 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.001141/0.001141, allocations: 191.4 kB / 17.85 MB, free: 5.289 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.334/1.334, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.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.001356/0.001356, allocations: 51.94 kB / 280 MB, free: 3.164 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09568/0.09705, allocations: 46.64 MB / 326.6 MB, free: 4.453 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01438/0.1115, allocations: 13.68 MB / 340.3 MB, free: 6.699 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007827/0.1193, allocations: 4.502 MB / 344.8 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001567/0.121, allocations: 75.69 kB / 344.9 MB, free: 2.105 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00243/0.1234, allocations: 1.037 MB / 345.9 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003328/0.1267, allocations: 1.382 MB / 347.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001763/0.1285, allocations: 0.912 MB / 348.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005439/0.134, allocations: 4.721 MB / 352.9 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003795/0.1378, allocations: 3.644 MB / 356.6 MB, free: 6.305 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002971/0.1408, allocations: 2.181 MB / 358.8 MB, free: 4.117 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002788/0.1436, allocations: 2.456 MB / 361.2 MB, free: 1.652 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00081/0.1444, allocations: 0.5898 MB / 361.8 MB, free: 1.062 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00154/0.1459, allocations: 0.8006 MB / 362.6 MB, free: 268 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001099/0.1471, allocations: 1.34 MB / 363.9 MB, free: 14.92 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002743/0.1498, allocations: 2.474 MB / 366.4 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006857/0.1567, allocations: 7.704 MB / 374.1 MB, free: 4.707 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.1567, allocations: 4 kB / 374.1 MB, free: 4.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.1567, allocations: 0 / 374.1 MB, free: 4.703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001824/0.1569, allocations: 0 / 374.1 MB, free: 4.703 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.2047/0.3616, allocations: 5.038 MB / 379.2 MB, free: 48.38 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.326e-05/0.3616, allocations: 8.781 kB / 379.2 MB, free: 48.38 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005588/0.3672, allocations: 0.8699 MB / 380 MB, free: 48.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006262/0.3735, allocations: 2.625 MB / 382.7 MB, free: 47.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002692/0.3738, allocations: 274.7 kB / 382.9 MB, free: 46.9 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009363/0.3748, allocations: 361.1 kB / 383.3 MB, free: 46.78 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01091/0.3857, allocations: 5.035 MB / 388.3 MB, free: 44.71 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.826e-05/0.3858, allocations: 6.406 kB / 388.3 MB, free: 44.71 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003328/0.3861, allocations: 155.6 kB / 388.5 MB, free: 44.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001651/0.3863, allocations: 157.7 kB / 388.6 MB, free: 44.58 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007886/0.3942, allocations: 4.379 MB / 393 MB, free: 42.84 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02168/0.4159, allocations: 15.91 MB / 408.9 MB, free: 29.84 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005556/0.4215, allocations: 7.786 MB / 416.7 MB, free: 21.16 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002142/0.4237, allocations: 1.725 MB / 418.4 MB, free: 19.44 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006494/0.4302, allocations: 4.648 MB / 423.1 MB, free: 14.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.4303, allocations: 55.81 kB / 423.1 MB, free: 14.69 MB / 318.1 MB Notification: Performance of pre-optimization done (n=161): time 3.366e-06/0.4303, allocations: 0 / 423.1 MB, free: 14.69 MB / 318.1 MB Notification: Performance of matching and sorting (n=164): time 0.01552/0.4458, allocations: 8.116 MB / 431.3 MB, free: 6.348 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.161e-05/0.4459, allocations: 68.72 kB / 431.3 MB, free: 6.266 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00312/0.449, allocations: 2.163 MB / 433.5 MB, free: 4.066 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000111/0.4491, allocations: 49.7 kB / 433.5 MB, free: 4.012 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007598/0.4499, allocations: 1.621 MB / 435.2 MB, free: 2.379 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003199/0.4502, allocations: 0.5459 MB / 435.7 MB, free: 1.836 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004852/0.4507, allocations: 359.2 kB / 436.1 MB, free: 1.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.93e-05/0.4508, allocations: 301.1 kB / 436.3 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001281/0.452, allocations: 0.9486 MB / 437.3 MB, free: 240 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001926/0.454, allocations: 1.457 MB / 438.8 MB, free: 14.56 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003698/0.4577, allocations: 2.504 MB / 441.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-05/0.4577, allocations: 4 kB / 441.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005829/0.4636, allocations: 3.351 MB / 444.6 MB, free: 8.453 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.109e-05/0.4636, allocations: 18.75 kB / 444.6 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.91e-05/0.4636, allocations: 16 kB / 444.6 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001858/0.4655, allocations: 0.7394 MB / 445.4 MB, free: 7.672 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001435/0.467, allocations: 371.4 kB / 445.7 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0124/0.4794, allocations: 11.36 MB / 457.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001993/0.4814, allocations: 87.95 kB / 457.2 MB, free: 11.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003273/0.4817, allocations: 79.98 kB / 457.3 MB, free: 11.24 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 190 * 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,8,100.0%), (9,19,33.3%), (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.002366/0.4841, allocations: 1.223 MB / 458.5 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006798/0.4848, allocations: 225.3 kB / 458.7 MB, free: 9.785 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005688/0.4905, allocations: 3.148 MB / 461.9 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.251e-05/0.4905, allocations: 19.94 kB / 461.9 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-05/0.4906, allocations: 12 kB / 461.9 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.791e-05/0.4906, allocations: 7.969 kB / 461.9 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0121/0.5027, allocations: 6.577 MB / 468.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.036e-06/0.5027, allocations: 0 / 468.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008403/0.5036, allocations: 179.9 kB / 468.7 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002305/0.5059, allocations: 0.9189 MB / 469.6 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001349/0.5061, allocations: 43.98 kB / 469.6 MB, free: 14.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0165/0.5226, allocations: 16.18 MB / 485.8 MB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.5226, allocations: 3.938 kB / 485.8 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007484/0.5301, allocations: 4.504 MB / 490.3 MB, free: 9.094 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001342/0.5315, allocations: 0.5177 MB / 490.8 MB, free: 8.555 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006567/0.5322, allocations: 43.94 kB / 490.9 MB, free: 8.512 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00164/0.5338, allocations: 71.94 kB / 490.9 MB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004923/0.5343, allocations: 172.9 kB / 491.1 MB, free: 8.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/0.5345, allocations: 43.98 kB / 491.1 MB, free: 8.227 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002923/0.5374, allocations: 1.481 MB / 492.6 MB, free: 6.727 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.5374, allocations: 4 kB / 492.6 MB, free: 6.723 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002895/0.5403, allocations: 0.7031 MB / 493.3 MB, free: 6.02 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * 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,1,100.0%), (1,8,100.0%), (9,19,33.3%), (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.000449/0.5408, allocations: 181 kB / 493.5 MB, free: 5.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007331/0.5481, allocations: 3.714 MB / 497.2 MB, free: 2.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.663e-06/0.5481, allocations: 0 / 497.2 MB, free: 2.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003613/0.5518, allocations: 2.266 MB / 499.5 MB, free: 15.73 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003288/0.5551, allocations: 0.6418 MB / 0.4884 GB, free: 15.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01243/0.5675, allocations: 6.89 MB / 0.4951 GB, free: 8.156 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002774/0.5703, allocations: 2.676 MB / 0.4978 GB, free: 5.453 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001671/0.572, allocations: 479.4 kB / 0.4982 GB, free: 4.98 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003273/0.5723, allocations: 135.4 kB / 0.4983 GB, free: 4.848 MB / 398.1 MB Notification: Performance of SimCode: time 1.943e-06/0.5723, allocations: 3.938 kB / 0.4983 GB, free: 4.844 MB / 398.1 MB Notification: Performance of Templates: time 0.254/0.8264, allocations: 38.3 MB / 0.5357 GB, free: 144.9 MB / 430.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)