Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.007428/0.007428, allocations: 100.1 kB / 15.73 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.001595/0.001595, allocations: 193.9 kB / 16.67 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.38/1.38, allocations: 205.1 MB / 222.5 MB, free: 4.508 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.001213/0.001213, allocations: 51.14 kB / 326.6 MB, free: 14.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0954/0.09662, allocations: 46.62 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01587/0.1125, allocations: 13.68 MB / 386.9 MB, free: 3.555 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009347/0.1219, allocations: 4.501 MB / 391.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002387/0.1244, allocations: 75.69 kB / 391.4 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003597/0.128, allocations: 1.084 MB / 392.5 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004619/0.1327, allocations: 1.418 MB / 393.9 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00246/0.1351, allocations: 0.9169 MB / 394.9 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006195/0.1413, allocations: 4.744 MB / 399.6 MB, free: 6.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005839/0.1472, allocations: 3.636 MB / 403.2 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004025/0.1513, allocations: 2.2 MB / 405.4 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004503/0.1558, allocations: 2.464 MB / 407.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001925/0.1577, allocations: 0.5937 MB / 408.5 MB, free: 13.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003369/0.1611, allocations: 0.785 MB / 409.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002157/0.1633, allocations: 1.34 MB / 410.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005389/0.1687, allocations: 2.47 MB / 413.1 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009873/0.1786, allocations: 7.766 MB / 420.9 MB, free: 1.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.775e-06/0.1787, allocations: 0 / 420.9 MB, free: 1.395 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1787, allocations: 0 / 420.9 MB, free: 1.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002332/0.1789, allocations: 0 / 420.9 MB, free: 1.395 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.0159/0.1948, allocations: 5.036 MB / 425.9 MB, free: 12.28 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.792e-05/0.1949, allocations: 8.031 kB / 425.9 MB, free: 12.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005287/0.2002, allocations: 0.8741 MB / 426.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005665/0.2059, allocations: 2.655 MB / 429.4 MB, free: 8.688 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002859/0.2062, allocations: 283.4 kB / 429.7 MB, free: 8.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00107/0.2073, allocations: 355.9 kB / 430.1 MB, free: 8.062 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01163/0.2189, allocations: 5.029 MB / 435.1 MB, free: 2.98 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001885/0.2191, allocations: 15.83 kB / 435.1 MB, free: 2.965 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001091/0.2203, allocations: 148 kB / 435.2 MB, free: 2.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002177/0.2205, allocations: 167.2 kB / 435.4 MB, free: 2.656 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01002/0.2305, allocations: 4.377 MB / 439.8 MB, free: 14.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2288/0.4594, allocations: 15.7 MB / 455.5 MB, free: 62.34 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007726/0.4672, allocations: 7.773 MB / 463.3 MB, free: 56.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003016/0.4702, allocations: 1.711 MB / 465 MB, free: 56.83 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008971/0.4792, allocations: 4.641 MB / 469.6 MB, free: 54.96 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.516e-05/0.4793, allocations: 55.66 kB / 469.7 MB, free: 54.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=161): time 4.609e-06/0.4793, allocations: 0 / 469.7 MB, free: 54.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=164): time 0.01734/0.4966, allocations: 8.127 MB / 477.8 MB, free: 51.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/0.4967, allocations: 69.31 kB / 477.9 MB, free: 51.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003543/0.5002, allocations: 2.159 MB / 480 MB, free: 50.05 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001106/0.5004, allocations: 55.11 kB / 480.1 MB, free: 50 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009555/0.5013, allocations: 1.618 MB / 481.7 MB, free: 48.59 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004332/0.5018, allocations: 0.5567 MB / 482.2 MB, free: 48.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005826/0.5024, allocations: 354.7 kB / 482.6 MB, free: 47.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.991e-05/0.5024, allocations: 302.1 kB / 482.9 MB, free: 47.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001324/0.5038, allocations: 0.9431 MB / 483.8 MB, free: 47.1 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001514/0.5053, allocations: 1.46 MB / 485.3 MB, free: 45.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002911/0.5082, allocations: 2.512 MB / 487.8 MB, free: 44.2 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.991e-05/0.5083, allocations: 3.938 kB / 487.8 MB, free: 44.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005041/0.5133, allocations: 3.343 MB / 491.2 MB, free: 42.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.5133, allocations: 11.44 kB / 491.2 MB, free: 42.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.454e-05/0.5134, allocations: 14.09 kB / 491.2 MB, free: 42.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001617/0.515, allocations: 0.7361 MB / 491.9 MB, free: 41.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/0.5163, allocations: 383.3 kB / 492.3 MB, free: 41.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009487/0.5258, allocations: 11.34 MB / 0.4918 GB, free: 29.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/0.5276, allocations: 87.84 kB / 0.4919 GB, free: 29.59 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002256/0.5278, allocations: 80 kB / 0.492 GB, free: 29.51 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.001858/0.5297, allocations: 1.218 MB / 0.4932 GB, free: 28.29 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004972/0.5302, allocations: 225.2 kB / 0.4934 GB, free: 28.06 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004606/0.5348, allocations: 3.159 MB / 0.4965 GB, free: 24.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/0.5348, allocations: 19.98 kB / 0.4965 GB, free: 24.82 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.528e-05/0.5349, allocations: 12 kB / 0.4965 GB, free: 24.81 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.43e-05/0.5349, allocations: 11.95 kB / 0.4965 GB, free: 24.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01014/0.545, allocations: 6.554 MB / 0.5029 GB, free: 18.13 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.457e-06/0.5451, allocations: 4 kB / 0.5029 GB, free: 18.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008008/0.5459, allocations: 179.7 kB / 0.5031 GB, free: 17.95 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002018/0.5479, allocations: 0.9111 MB / 0.504 GB, free: 17.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001229/0.548, allocations: 43.98 kB / 0.504 GB, free: 16.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01282/0.5609, allocations: 16.17 MB / 0.5198 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.5609, allocations: 0 / 0.5198 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007806/0.5687, allocations: 4.513 MB / 0.5242 GB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001308/0.5701, allocations: 0.5178 MB / 0.5247 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005831/0.5707, allocations: 35.98 kB / 0.5248 GB, free: 10.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001333/0.572, allocations: 71.94 kB / 0.5248 GB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005123/0.5726, allocations: 165 kB / 0.525 GB, free: 10.61 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001317/0.5727, allocations: 47.98 kB / 0.525 GB, free: 10.56 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.003223/0.5759, allocations: 1.489 MB / 0.5265 GB, free: 9.055 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5759, allocations: 0 / 0.5265 GB, free: 9.055 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003393/0.5793, allocations: 0.7058 MB / 0.5272 GB, free: 8.352 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.0004773/0.5798, allocations: 174.8 kB / 0.5273 GB, free: 8.172 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005243/0.5851, allocations: 3.125 MB / 0.5304 GB, free: 4.973 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/0.5851, allocations: 2 kB / 0.5304 GB, free: 4.973 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003644/0.5888, allocations: 2.271 MB / 0.5326 GB, free: 2.633 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003344/0.5921, allocations: 0.6337 MB / 0.5332 GB, free: 1.996 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01392/0.6061, allocations: 6.812 MB / 0.5399 GB, free: 11.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004182/0.6103, allocations: 2.678 MB / 0.5425 GB, free: 8.445 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002193/0.6125, allocations: 483.4 kB / 0.543 GB, free: 7.969 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006046/0.6132, allocations: 139.4 kB / 0.5431 GB, free: 7.832 MB / 414.1 MB Notification: Performance of SimCode: time 8.81e-07/0.6132, allocations: 0 / 0.5431 GB, free: 7.832 MB / 414.1 MB Notification: Performance of Templates: time 0.06772/0.6809, allocations: 36.92 MB / 0.5792 GB, free: 2.898 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)