Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.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_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009366/0.0009367, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.001137/0.001137, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.51/1.51, allocations: 205.4 MB / 222.1 MB, free: 5.656 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.0004974/0.0004976, allocations: 8 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3053/0.3059, allocations: 47.58 MB / 326.5 MB, free: 1.391 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL): time 0.01946/0.3254, allocations: 17.2 MB / 343.7 MB, free: 2.25 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01533/0.3408, allocations: 5.342 MB / 349 MB, free: 12.89 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005249/0.3461, allocations: 99.56 kB / 349.1 MB, free: 12.8 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004292/0.3504, allocations: 0.959 MB / 350.1 MB, free: 11.83 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007552/0.358, allocations: 1.573 MB / 351.6 MB, free: 10.25 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003797/0.3618, allocations: 0.8108 MB / 352.5 MB, free: 9.438 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01057/0.3724, allocations: 6.511 MB / 359 MB, free: 2.898 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007944/0.3804, allocations: 3.539 MB / 362.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005141/0.3856, allocations: 2.078 MB / 364.6 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005722/0.3914, allocations: 2.755 MB / 367.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002705/0.3941, allocations: 336 kB / 367.7 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004013/0.3981, allocations: 0.5661 MB / 368.2 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003185/0.4014, allocations: 1.402 MB / 369.6 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003416/0.4048, allocations: 1.178 MB / 370.8 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01412/0.419, allocations: 8.629 MB / 379.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.233e-05/0.419, allocations: 0 / 379.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.268e-06/0.419, allocations: 0 / 379.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.00049/0.4195, allocations: 0 / 379.4 MB, free: 14.3 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: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.0197/0.4393, allocations: 5.673 MB / 385.1 MB, free: 8.555 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.72e-05/0.4394, allocations: 8.031 kB / 385.1 MB, free: 8.547 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007461/0.4468, allocations: 1.078 MB / 386.2 MB, free: 7.461 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01012/0.457, allocations: 3.3 MB / 389.5 MB, free: 4.086 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005225/0.4576, allocations: 386.3 kB / 389.9 MB, free: 3.707 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002111/0.4597, allocations: 0.5076 MB / 390.4 MB, free: 3.199 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02802/0.4877, allocations: 6.926 MB / 397.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004798/0.4883, allocations: 11.89 kB / 397.3 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002387/0.4907, allocations: 212 kB / 397.5 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000312/0.491, allocations: 238.2 kB / 397.8 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01789/0.509, allocations: 5.892 MB / 403.7 MB, free: 5.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05773/0.5667, allocations: 21.48 MB / 425.1 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01193/0.5787, allocations: 8.697 MB / 433.8 MB, free: 6.25 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005465/0.5843, allocations: 2.37 MB / 436.2 MB, free: 3.875 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01847/0.6028, allocations: 6.148 MB / 442.3 MB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.27e-05/0.603, allocations: 56.56 kB / 442.4 MB, free: 13.55 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 9.047e-06/0.603, allocations: 3.984 kB / 442.4 MB, free: 13.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=238): time 0.03049/0.6335, allocations: 11.43 MB / 453.8 MB, free: 1.883 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.895e-05/0.6336, allocations: 81.41 kB / 453.9 MB, free: 1.789 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2671/0.9007, allocations: 2.959 MB / 456.9 MB, free: 106.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006953/0.9015, allocations: 67.19 kB / 456.9 MB, free: 106.1 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001884/0.9034, allocations: 2.304 MB / 459.2 MB, free: 105.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008601/0.9043, allocations: 0.8139 MB / 460.1 MB, free: 104.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001568/0.9044, allocations: 56.66 kB / 460.1 MB, free: 104.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.9046, allocations: 425.3 kB / 460.5 MB, free: 104 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002428/0.9071, allocations: 1.354 MB / 461.9 MB, free: 103.5 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002674/0.9098, allocations: 2.133 MB / 464 MB, free: 102.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002354/0.9121, allocations: 1.703 MB / 465.7 MB, free: 101.4 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.334e-05/0.9122, allocations: 3.938 kB / 465.7 MB, free: 101.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=367) (initialization): time 0.007437/0.9196, allocations: 4.65 MB / 470.4 MB, free: 99.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.603e-05/0.9197, allocations: 15.41 kB / 470.4 MB, free: 99.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.163e-05/0.9197, allocations: 23.88 kB / 470.4 MB, free: 99.36 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0016/0.9213, allocations: 0.7693 MB / 471.2 MB, free: 99.09 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002102/0.9234, allocations: 0.6376 MB / 471.8 MB, free: 99.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00953/0.933, allocations: 13.38 MB / 485.2 MB, free: 87.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003392/0.9364, allocations: 163.3 kB / 485.4 MB, free: 87.69 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003924/0.9368, allocations: 120.2 kB / 485.5 MB, free: 87.67 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 106 * Number of states: 0 () * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (324): * Single equations (assignments): 314 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003391/0.9402, allocations: 1.607 MB / 487.1 MB, free: 86.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008137/0.9411, allocations: 320.1 kB / 487.4 MB, free: 86.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00608/0.9471, allocations: 4.199 MB / 491.6 MB, free: 81.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.801e-05/0.9472, allocations: 27.98 kB / 491.6 MB, free: 81.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.417e-05/0.9472, allocations: 15.84 kB / 491.6 MB, free: 81.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-05/0.9472, allocations: 19.89 kB / 491.7 MB, free: 81.82 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01378/0.961, allocations: 9.127 MB / 0.489 GB, free: 72.58 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.329e-05/0.9611, allocations: 4.5 kB / 0.4891 GB, free: 72.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001439/0.9625, allocations: 379.4 kB / 0.4894 GB, free: 72.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002027/0.9646, allocations: 0.9233 MB / 0.4903 GB, free: 71.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002052/0.9648, allocations: 67.97 kB / 0.4904 GB, free: 71.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01234/0.9771, allocations: 16.5 MB / 0.5065 GB, free: 53.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/0.9772, allocations: 7.938 kB / 0.5065 GB, free: 53.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008559/0.9858, allocations: 6.061 MB / 0.5124 GB, free: 47.47 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002013/0.9878, allocations: 0.7001 MB / 0.5131 GB, free: 46.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004404/0.9883, allocations: 56 kB / 0.5132 GB, free: 46.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001443/0.9897, allocations: 139.9 kB / 0.5133 GB, free: 46.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004944/0.9902, allocations: 205.5 kB / 0.5135 GB, free: 46.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001466/0.9904, allocations: 71.97 kB / 0.5136 GB, free: 46.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002988/0.9934, allocations: 2.01 MB / 0.5155 GB, free: 44.28 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.9934, allocations: 0 / 0.5155 GB, free: 44.28 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004153/0.9976, allocations: 0.9791 MB / 0.5165 GB, free: 43.3 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.zeroInductor.i0,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (179): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007313/0.9983, allocations: 216.4 kB / 0.5167 GB, free: 43.08 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.009428/1.008, allocations: 4.571 MB / 0.5211 GB, free: 38.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.211e-05/1.008, allocations: 1.875 kB / 0.5211 GB, free: 38.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005774/1.014, allocations: 3.062 MB / 0.5241 GB, free: 35.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007068/1.021, allocations: 0.8752 MB / 0.525 GB, free: 34.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02477/1.046, allocations: 11.85 MB / 0.5366 GB, free: 22.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004678/1.05, allocations: 3.43 MB / 0.5399 GB, free: 18.92 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.004201/1.054, allocations: 0.7698 MB / 0.5407 GB, free: 18.15 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000927/1.055, allocations: 215.4 kB / 0.5409 GB, free: 17.94 MB / 382.1 MB Notification: Performance of SimCode: time 2.004e-06/1.055, allocations: 0 / 0.5409 GB, free: 17.94 MB / 382.1 MB Notification: Performance of Templates: time 0.09058/1.146, allocations: 47.54 MB / 0.5873 GB, free: 2.332 MB / 414.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe 2>&1)