Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001084/0.001084, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 198.4 kB / 16.54 MB, free: 6.672 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.335/1.335, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.001201/0.001201, allocations: 55.92 kB / 278.7 MB, free: 12.36 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2588, allocations: 46.63 MB / 325.3 MB, free: 1.879 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL): time 0.01985/0.2786, allocations: 19.47 MB / 344.8 MB, free: 400 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01218/0.2909, allocations: 5.683 MB / 350.5 MB, free: 10.69 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003919/0.2949, allocations: 107.6 kB / 350.6 MB, free: 10.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005474/0.3004, allocations: 1.288 MB / 351.9 MB, free: 9.289 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007889/0.3083, allocations: 1.903 MB / 353.8 MB, free: 7.375 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004048/0.3124, allocations: 1.185 MB / 355 MB, free: 6.188 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.009372/0.3217, allocations: 6.402 MB / 361.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006634/0.3284, allocations: 5.329 MB / 366.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004405/0.3329, allocations: 2.948 MB / 369.6 MB, free: 7.383 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005203/0.3381, allocations: 3.464 MB / 373.1 MB, free: 3.906 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001821/0.3399, allocations: 0.8008 MB / 373.9 MB, free: 3.105 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003189/0.3431, allocations: 1.082 MB / 375 MB, free: 2.023 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002043/0.3452, allocations: 1.987 MB / 377 MB, free: 28 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00475/0.35, allocations: 3.431 MB / 380.4 MB, free: 12.58 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01116/0.3611, allocations: 10.52 MB / 390.9 MB, free: 2.035 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.608e-06/0.3612, allocations: 3.938 kB / 390.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3612, allocations: 0 / 390.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003735/0.3616, allocations: 4 kB / 390.9 MB, free: 2.027 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.0224/0.384, allocations: 6.699 MB / 397.6 MB, free: 11.24 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.3841, allocations: 8.031 kB / 397.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006157/0.3902, allocations: 1.083 MB / 398.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007335/0.3976, allocations: 3.44 MB / 402.1 MB, free: 6.629 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000373/0.398, allocations: 386.6 kB / 402.5 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001514/0.3995, allocations: 0.5155 MB / 403 MB, free: 5.734 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01535/0.4149, allocations: 6.941 MB / 410 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001789/0.4151, allocations: 7.984 kB / 410 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009585/0.4161, allocations: 215.9 kB / 410.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002312/0.4163, allocations: 238.2 kB / 410.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01122/0.4276, allocations: 5.911 MB / 416.3 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03884/0.4664, allocations: 21.38 MB / 437.7 MB, free: 2.484 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008476/0.4749, allocations: 8.697 MB / 446.4 MB, free: 8.84 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003833/0.4788, allocations: 2.374 MB / 448.8 MB, free: 6.465 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01052/0.4893, allocations: 6.128 MB / 454.9 MB, free: 224 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.779e-05/0.4894, allocations: 60.56 kB / 455 MB, free: 156 kB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 4.088e-06/0.4894, allocations: 0 / 455 MB, free: 156 kB / 382.1 MB Notification: Performance of matching and sorting (n=238): time 0.1864/0.6759, allocations: 11.29 MB / 466.3 MB, free: 104.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.527e-05/0.6759, allocations: 76.78 kB / 466.3 MB, free: 104.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003825/0.6798, allocations: 2.992 MB / 469.3 MB, free: 103.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002032/0.68, allocations: 67.23 kB / 469.4 MB, free: 103 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001167/0.6812, allocations: 2.303 MB / 471.7 MB, free: 101.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004884/0.6817, allocations: 0.815 MB / 472.5 MB, free: 100.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006785/0.6824, allocations: 0.5059 MB / 473 MB, free: 100.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.291e-05/0.6824, allocations: 301.1 kB / 473.3 MB, free: 100.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001757/0.6842, allocations: 1.352 MB / 474.7 MB, free: 99.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002075/0.6863, allocations: 2.129 MB / 476.8 MB, free: 97.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003886/0.6901, allocations: 3.698 MB / 480.5 MB, free: 94.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.698e-06/0.6902, allocations: 8 kB / 480.5 MB, free: 94.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=367) (initialization): time 0.006235/0.6964, allocations: 4.666 MB / 485.2 MB, free: 89.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.793e-05/0.6965, allocations: 17.31 kB / 485.2 MB, free: 89.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.941e-05/0.6965, allocations: 24 kB / 485.2 MB, free: 89.35 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001578/0.6981, allocations: 0.7635 MB / 486 MB, free: 88.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002093/0.7002, allocations: 0.6318 MB / 486.6 MB, free: 87.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009479/0.7097, allocations: 14.53 MB / 0.4894 GB, free: 72.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002833/0.7125, allocations: 155.8 kB / 0.4895 GB, free: 72.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000224/0.7128, allocations: 120.8 kB / 0.4897 GB, free: 72.2 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[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 (324): * Single equations (assignments): 314 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (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): 7 systems {(1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (1,13,100.0%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002328/0.7151, allocations: 1.606 MB / 0.4912 GB, free: 70.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00055/0.7157, allocations: 320.1 kB / 0.4915 GB, free: 70.27 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005878/0.7216, allocations: 4.205 MB / 0.4956 GB, free: 65.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.968e-05/0.7216, allocations: 26.19 kB / 0.4957 GB, free: 65.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.731e-05/0.7216, allocations: 12 kB / 0.4957 GB, free: 65.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-05/0.7216, allocations: 11.95 kB / 0.4957 GB, free: 65.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01247/0.7341, allocations: 9.125 MB / 0.5046 GB, free: 56.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.176e-05/0.7342, allocations: 9.5 kB / 0.5046 GB, free: 56.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001464/0.7356, allocations: 376 kB / 0.505 GB, free: 56.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00214/0.7378, allocations: 0.9421 MB / 0.5059 GB, free: 55.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001574/0.738, allocations: 66.48 kB / 0.5059 GB, free: 55.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01234/0.7503, allocations: 18 MB / 0.5235 GB, free: 36.22 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.7504, allocations: 13.31 kB / 0.5235 GB, free: 36.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008015/0.7584, allocations: 6.046 MB / 0.5294 GB, free: 30.03 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001513/0.7599, allocations: 0.6923 MB / 0.5301 GB, free: 29.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005196/0.7604, allocations: 59.92 kB / 0.5302 GB, free: 29.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001576/0.762, allocations: 135.9 kB / 0.5303 GB, free: 29.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004439/0.7625, allocations: 197.6 kB / 0.5305 GB, free: 28.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001406/0.7626, allocations: 67.98 kB / 0.5306 GB, free: 28.87 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002848/0.7655, allocations: 2.049 MB / 0.5326 GB, free: 26.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.7655, allocations: 0 / 0.5326 GB, free: 26.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003648/0.7692, allocations: 0.9755 MB / 0.5335 GB, free: 25.85 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 (not torn): 1 * Torn equation systems: 8 * 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): 8 systems {(2,12,100.0%), (1,1,100.0%), (1,8,100.0%), (2,1,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.0005271/0.7697, allocations: 250 kB / 0.5337 GB, free: 25.6 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.009964/0.7797, allocations: 6.118 MB / 0.5397 GB, free: 19.35 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.857e-06/0.7797, allocations: 0 / 0.5397 GB, free: 19.35 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003789/0.7835, allocations: 3.032 MB / 0.5427 GB, free: 16.19 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003934/0.7875, allocations: 0.9003 MB / 0.5436 GB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01529/0.8028, allocations: 10.04 MB / 0.5534 GB, free: 5.199 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002581/0.8054, allocations: 3.423 MB / 0.5567 GB, free: 1.742 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002509/0.808, allocations: 0.7697 MB / 0.5575 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005327/0.8085, allocations: 211.4 kB / 0.5577 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.8085, allocations: 4 kB / 0.5577 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of Templates: time 0.2552/1.064, allocations: 51.31 MB / 0.6078 GB, free: 139.8 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe 2>&1)