Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_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.1_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.1_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.007049/0.007049, allocations: 105.4 kB / 15.74 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.001266/0.001266, allocations: 199.9 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.367/1.367, allocations: 205.1 MB / 222.5 MB, free: 4.379 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.001284/0.001284, allocations: 53.28 kB / 326.6 MB, free: 14.43 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.1043, allocations: 46.62 MB / 373.2 MB, free: 1.273 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01537/0.1197, allocations: 13.68 MB / 386.9 MB, free: 3.531 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008707/0.1285, allocations: 4.509 MB / 391.4 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00215/0.1307, allocations: 71.69 kB / 391.4 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003282/0.134, allocations: 1.08 MB / 392.5 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004908/0.139, allocations: 1.425 MB / 393.9 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002691/0.1417, allocations: 0.9041 MB / 394.8 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006482/0.1482, allocations: 4.752 MB / 399.6 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006104/0.1543, allocations: 3.64 MB / 403.2 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004282/0.1586, allocations: 2.204 MB / 405.4 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004962/0.1636, allocations: 2.464 MB / 407.9 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001937/0.1656, allocations: 0.5859 MB / 408.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003379/0.169, allocations: 0.7928 MB / 409.3 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00231/0.1713, allocations: 1.34 MB / 410.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005507/0.1769, allocations: 2.466 MB / 413.1 MB, free: 9.152 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009959/0.1869, allocations: 7.77 MB / 420.9 MB, free: 1.359 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.1869, allocations: 0 / 420.9 MB, free: 1.359 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1869, allocations: 0 / 420.9 MB, free: 1.359 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002326/0.1872, allocations: 0 / 420.9 MB, free: 1.359 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01413/0.2013, allocations: 5.036 MB / 425.9 MB, free: 12.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.2014, allocations: 12.03 kB / 425.9 MB, free: 12.23 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004308/0.2057, allocations: 0.8663 MB / 426.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004499/0.2102, allocations: 2.662 MB / 429.4 MB, free: 8.648 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000193/0.2104, allocations: 275.4 kB / 429.7 MB, free: 8.379 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005636/0.211, allocations: 355.9 kB / 430.1 MB, free: 8.031 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008631/0.2196, allocations: 5.029 MB / 435.1 MB, free: 2.949 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.991e-05/0.2197, allocations: 11.84 kB / 435.1 MB, free: 2.938 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003375/0.2201, allocations: 156 kB / 435.2 MB, free: 2.785 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001405/0.2202, allocations: 163.2 kB / 435.4 MB, free: 2.625 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007323/0.2276, allocations: 4.373 MB / 439.8 MB, free: 14.24 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2309/0.4584, allocations: 15.71 MB / 455.5 MB, free: 62.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00773/0.4662, allocations: 7.774 MB / 463.3 MB, free: 56.69 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002934/0.4692, allocations: 1.718 MB / 465 MB, free: 56.67 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00839/0.4776, allocations: 4.639 MB / 469.6 MB, free: 54.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.898e-05/0.4777, allocations: 55.28 kB / 469.7 MB, free: 54.74 MB / 382.1 MB Notification: Performance of pre-optimization done (n=161): time 3.797e-06/0.4777, allocations: 0 / 469.7 MB, free: 54.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=164): time 0.01696/0.4947, allocations: 8.12 MB / 477.8 MB, free: 51.03 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.998e-05/0.4948, allocations: 74.08 kB / 477.9 MB, free: 50.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002973/0.4978, allocations: 2.158 MB / 480 MB, free: 49.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001546/0.4979, allocations: 53.67 kB / 480.1 MB, free: 49.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000852/0.4988, allocations: 1.622 MB / 481.7 MB, free: 48.45 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004242/0.4992, allocations: 0.5512 MB / 482.2 MB, free: 47.97 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006179/0.4999, allocations: 355.5 kB / 482.6 MB, free: 47.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.84e-05/0.4999, allocations: 307.8 kB / 482.9 MB, free: 47.46 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00164/0.5016, allocations: 0.9481 MB / 483.8 MB, free: 46.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001692/0.5033, allocations: 1.453 MB / 485.3 MB, free: 45.81 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003195/0.5065, allocations: 2.505 MB / 487.8 MB, free: 44.07 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.608e-05/0.5065, allocations: 7.375 kB / 487.8 MB, free: 44.07 MB / 382.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005125/0.5117, allocations: 3.342 MB / 491.2 MB, free: 42.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.121e-05/0.5117, allocations: 15.16 kB / 491.2 MB, free: 42.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.534e-05/0.5118, allocations: 18.72 kB / 491.2 MB, free: 42.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001814/0.5136, allocations: 0.7338 MB / 491.9 MB, free: 41.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001404/0.515, allocations: 382.1 kB / 492.3 MB, free: 41.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009654/0.5247, allocations: 11.34 MB / 0.4918 GB, free: 29.62 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001856/0.5266, allocations: 90.34 kB / 0.4919 GB, free: 29.53 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003351/0.5269, allocations: 80.09 kB / 0.492 GB, free: 29.45 MB / 382.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.002704/0.5296, allocations: 1.208 MB / 0.4932 GB, free: 28.23 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008109/0.5305, allocations: 233.1 kB / 0.4934 GB, free: 28 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005408/0.5359, allocations: 3.156 MB / 0.4965 GB, free: 24.79 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.41e-05/0.5359, allocations: 16 kB / 0.4965 GB, free: 24.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.983e-05/0.536, allocations: 11.94 kB / 0.4965 GB, free: 24.76 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.385e-05/0.536, allocations: 11.97 kB / 0.4965 GB, free: 24.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01045/0.5464, allocations: 6.565 MB / 0.5029 GB, free: 18.07 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/0.5465, allocations: 4.031 kB / 0.5029 GB, free: 18.07 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007702/0.5472, allocations: 175.7 kB / 0.5031 GB, free: 17.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002021/0.5493, allocations: 0.9132 MB / 0.504 GB, free: 16.97 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001263/0.5494, allocations: 43.98 kB / 0.504 GB, free: 16.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01329/0.5627, allocations: 16.17 MB / 0.5198 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.5628, allocations: 10.48 kB / 0.5198 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00774/0.5705, allocations: 4.494 MB / 0.5242 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00142/0.572, allocations: 0.5216 MB / 0.5247 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006946/0.5727, allocations: 39.98 kB / 0.5248 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001481/0.5742, allocations: 79.88 kB / 0.5248 GB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005145/0.5747, allocations: 161.1 kB / 0.525 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001395/0.5749, allocations: 43.94 kB / 0.525 GB, free: 10.51 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003121/0.578, allocations: 1.489 MB / 0.5265 GB, free: 9.004 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.62e-07/0.578, allocations: 4 kB / 0.5265 GB, free: 9 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003629/0.5816, allocations: 0.7018 MB / 0.5272 GB, free: 8.301 MB / 398.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.0004883/0.5821, allocations: 178.8 kB / 0.5273 GB, free: 8.117 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005776/0.5879, allocations: 3.122 MB / 0.5304 GB, free: 4.926 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.847e-06/0.588, allocations: 4 kB / 0.5304 GB, free: 4.922 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003906/0.5919, allocations: 2.267 MB / 0.5326 GB, free: 2.582 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004531/0.5965, allocations: 0.633 MB / 0.5332 GB, free: 1.945 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01614/0.6126, allocations: 6.808 MB / 0.5399 GB, free: 11.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003947/0.6166, allocations: 2.678 MB / 0.5425 GB, free: 8.402 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.00198/0.6186, allocations: 483.4 kB / 0.543 GB, free: 7.926 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005996/0.6192, allocations: 135.4 kB / 0.5431 GB, free: 7.793 MB / 414.1 MB Notification: Performance of SimCode: time 1.333e-06/0.6193, allocations: 0 / 0.5431 GB, free: 7.793 MB / 414.1 MB Notification: Performance of Templates: time 0.06867/0.6879, allocations: 36.94 MB / 0.5792 GB, free: 2.848 MB / 446.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)