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.001162/0.001162, allocations: 108 kB / 15.61 MB, free: 148 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.001312/0.001312, allocations: 196.6 kB / 16.53 MB, free: 6.656 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.307/1.307, allocations: 205.1 MB / 222.4 MB, free: 4.555 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.001711/0.001711, allocations: 59.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.198/0.1997, allocations: 46.63 MB / 325.3 MB, free: 1.859 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL): time 0.02006/0.2198, allocations: 19.47 MB / 344.8 MB, free: 388 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01298/0.2329, allocations: 5.671 MB / 350.5 MB, free: 10.69 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003772/0.2367, allocations: 107.6 kB / 350.6 MB, free: 10.59 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004052/0.2408, allocations: 1.296 MB / 351.9 MB, free: 9.281 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006774/0.2476, allocations: 1.899 MB / 353.8 MB, free: 7.371 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004215/0.2518, allocations: 1.189 MB / 355 MB, free: 6.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.009626/0.2614, allocations: 6.406 MB / 361.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008741/0.2702, allocations: 5.333 MB / 366.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004871/0.2751, allocations: 2.94 MB / 369.6 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005616/0.2808, allocations: 3.468 MB / 373.1 MB, free: 3.895 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002356/0.2832, allocations: 0.8046 MB / 373.9 MB, free: 3.09 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003457/0.2866, allocations: 1.078 MB / 375 MB, free: 2.012 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004152/0.2908, allocations: 1.991 MB / 377 MB, free: 12 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007361/0.2982, allocations: 3.423 MB / 380.4 MB, free: 12.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01415/0.3124, allocations: 10.52 MB / 390.9 MB, free: 2.02 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/0.3124, allocations: 0 / 390.9 MB, free: 2.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.61e-07/0.3124, allocations: 0 / 390.9 MB, free: 2.02 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003215/0.3128, allocations: 0 / 390.9 MB, free: 2.02 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.01958/0.3324, allocations: 6.703 MB / 397.6 MB, free: 11.23 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.3324, allocations: 15.97 kB / 397.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005868/0.3383, allocations: 1.067 MB / 398.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007666/0.346, allocations: 3.44 MB / 402.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004454/0.3465, allocations: 382.7 kB / 402.5 MB, free: 6.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001779/0.3483, allocations: 0.5116 MB / 403 MB, free: 5.738 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01805/0.3663, allocations: 6.949 MB / 410 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002691/0.3666, allocations: 7.938 kB / 410 MB, free: 14.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001632/0.3683, allocations: 212 kB / 410.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004221/0.3687, allocations: 238.2 kB / 410.4 MB, free: 14.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01402/0.3828, allocations: 5.919 MB / 416.3 MB, free: 8.332 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03902/0.4218, allocations: 21.37 MB / 437.7 MB, free: 2.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01482/0.4367, allocations: 8.697 MB / 446.4 MB, free: 8.836 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006997/0.4438, allocations: 2.366 MB / 448.8 MB, free: 6.469 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0213/0.4651, allocations: 6.136 MB / 454.9 MB, free: 220 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.171e-05/0.4653, allocations: 64.5 kB / 455 MB, free: 148 kB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 8.646e-06/0.4653, allocations: 0 / 455 MB, free: 148 kB / 382.1 MB Notification: Performance of matching and sorting (n=238): time 0.2015/0.6669, allocations: 11.28 MB / 466.3 MB, free: 104.3 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.106e-05/0.6669, allocations: 73.03 kB / 466.3 MB, free: 104.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004067/0.671, allocations: 2.998 MB / 469.3 MB, free: 103.1 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001572/0.6712, allocations: 65.58 kB / 469.4 MB, free: 103 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001207/0.6724, allocations: 2.305 MB / 471.7 MB, free: 101.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005097/0.6729, allocations: 0.8074 MB / 472.5 MB, free: 100.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006321/0.6735, allocations: 0.5109 MB / 473 MB, free: 100.4 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.524e-05/0.6736, allocations: 305.1 kB / 473.3 MB, free: 100.1 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001687/0.6753, allocations: 1.355 MB / 474.7 MB, free: 99.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001955/0.6773, allocations: 2.13 MB / 476.8 MB, free: 97.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003771/0.681, allocations: 3.692 MB / 480.5 MB, free: 94.19 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.195e-05/0.6811, allocations: 9.203 kB / 480.5 MB, free: 94.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=367) (initialization): time 0.006342/0.6874, allocations: 4.662 MB / 485.2 MB, free: 89.42 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.061e-05/0.6875, allocations: 20.12 kB / 485.2 MB, free: 89.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.071e-05/0.6875, allocations: 24 kB / 485.2 MB, free: 89.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001584/0.6891, allocations: 0.7632 MB / 486 MB, free: 88.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002176/0.6913, allocations: 0.6279 MB / 486.6 MB, free: 87.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009412/0.7007, allocations: 14.54 MB / 0.4894 GB, free: 72.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00272/0.7035, allocations: 153.3 kB / 0.4895 GB, free: 72.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002548/0.7038, allocations: 120 kB / 0.4897 GB, free: 72.22 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.002427/0.7062, allocations: 1.602 MB / 0.4912 GB, free: 70.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006231/0.7068, allocations: 320.1 kB / 0.4915 GB, free: 70.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005695/0.7125, allocations: 4.205 MB / 0.4956 GB, free: 66 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.497e-05/0.7126, allocations: 27.94 kB / 0.4957 GB, free: 65.98 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.507e-05/0.7126, allocations: 12 kB / 0.4957 GB, free: 65.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.871e-05/0.7126, allocations: 11.95 kB / 0.4957 GB, free: 65.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01248/0.7251, allocations: 9.118 MB / 0.5046 GB, free: 56.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.898e-06/0.7251, allocations: 11.77 kB / 0.5046 GB, free: 56.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/0.7265, allocations: 379.9 kB / 0.505 GB, free: 56.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001992/0.7285, allocations: 0.9343 MB / 0.5059 GB, free: 55.37 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001497/0.7287, allocations: 63.97 kB / 0.5059 GB, free: 55.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01185/0.7406, allocations: 18.01 MB / 0.5235 GB, free: 36.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.088e-06/0.7406, allocations: 8 kB / 0.5235 GB, free: 36.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007821/0.7484, allocations: 6.05 MB / 0.5294 GB, free: 30.05 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00161/0.7501, allocations: 0.7001 MB / 0.5301 GB, free: 29.33 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004273/0.7505, allocations: 59.92 kB / 0.5302 GB, free: 29.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001426/0.752, allocations: 131.9 kB / 0.5303 GB, free: 29.14 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004273/0.7524, allocations: 197.5 kB / 0.5305 GB, free: 28.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001248/0.7525, allocations: 68.55 kB / 0.5306 GB, free: 28.88 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002387/0.7549, allocations: 2.045 MB / 0.5326 GB, free: 26.84 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7549, allocations: 0 / 0.5326 GB, free: 26.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003039/0.758, allocations: 0.9752 MB / 0.5335 GB, free: 25.87 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.0004729/0.7585, allocations: 248.8 kB / 0.5337 GB, free: 25.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.009241/0.7677, allocations: 6.118 MB / 0.5397 GB, free: 19.37 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.692e-06/0.7677, allocations: 0 / 0.5397 GB, free: 19.37 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003532/0.7713, allocations: 3.042 MB / 0.5427 GB, free: 16.2 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003805/0.7751, allocations: 0.8966 MB / 0.5436 GB, free: 15.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01499/0.7901, allocations: 10.03 MB / 0.5534 GB, free: 5.223 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00259/0.7928, allocations: 3.431 MB / 0.5567 GB, free: 1.758 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002379/0.7951, allocations: 0.7737 MB / 0.5575 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005066/0.7957, allocations: 207.4 kB / 0.5577 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.7957, allocations: 0 / 0.5577 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of Templates: time 0.2513/1.047, allocations: 51.3 MB / 0.6078 GB, free: 139.8 MB / 430.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)