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.001224/0.001224, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001349/0.001349, allocations: 194.5 kB / 16.14 MB, free: 6.664 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.321/1.321, allocations: 205.1 MB / 222 MB, free: 4.738 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.00108/0.00108, allocations: 51.92 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1985/0.1996, allocations: 46.62 MB / 324.7 MB, free: 2.164 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL): time 0.01983/0.2195, allocations: 19.23 MB / 343.9 MB, free: 1.012 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01132/0.2309, allocations: 5.625 MB / 349.5 MB, free: 11.37 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003725/0.2346, allocations: 99.56 kB / 349.6 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004313/0.239, allocations: 1.1 MB / 350.7 MB, free: 10.17 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005914/0.2449, allocations: 1.733 MB / 352.5 MB, free: 8.426 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003061/0.248, allocations: 1.096 MB / 353.6 MB, free: 7.328 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.008452/0.2565, allocations: 7.103 MB / 360.7 MB, free: 200 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006764/0.2633, allocations: 4.45 MB / 365.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004124/0.2674, allocations: 2.417 MB / 367.5 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005505/0.2729, allocations: 3.257 MB / 370.8 MB, free: 5.961 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001734/0.2747, allocations: 480 kB / 371.3 MB, free: 5.492 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003043/0.2778, allocations: 0.7535 MB / 372 MB, free: 4.738 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002573/0.2803, allocations: 1.631 MB / 373.6 MB, free: 3.102 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005598/0.286, allocations: 3.064 MB / 376.7 MB, free: 20 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009257/0.2952, allocations: 10.26 MB / 387 MB, free: 5.727 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.2953, allocations: 0 / 387 MB, free: 5.727 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.2953, allocations: 3.938 kB / 387 MB, free: 5.723 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002355/0.2955, allocations: 0 / 387 MB, free: 5.723 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.01503/0.3106, allocations: 6.683 MB / 393.7 MB, free: 14.95 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.3106, allocations: 12.03 kB / 393.7 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004776/0.3154, allocations: 1.075 MB / 394.7 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005378/0.3208, allocations: 3.393 MB / 398.1 MB, free: 10.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002468/0.3211, allocations: 390.7 kB / 398.5 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007386/0.3218, allocations: 0.5117 MB / 399 MB, free: 9.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01182/0.3337, allocations: 6.949 MB / 406 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000111/0.3338, allocations: 11.84 kB / 406 MB, free: 2.461 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004526/0.3343, allocations: 208 kB / 406.2 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002039/0.3345, allocations: 238.2 kB / 406.4 MB, free: 2.023 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009786/0.3443, allocations: 5.915 MB / 412.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03047/0.3747, allocations: 21.37 MB / 433.7 MB, free: 6.246 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007607/0.3824, allocations: 8.693 MB / 442.4 MB, free: 12.61 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003512/0.3859, allocations: 2.378 MB / 444.8 MB, free: 10.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01013/0.3961, allocations: 6.136 MB / 450.9 MB, free: 3.977 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.782e-05/0.3961, allocations: 60.5 kB / 451 MB, free: 3.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 3.887e-06/0.3962, allocations: 0 / 451 MB, free: 3.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=238): time 0.169/0.5652, allocations: 11.27 MB / 462.3 MB, free: 105.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.653e-05/0.5652, allocations: 77.09 kB / 462.3 MB, free: 105.6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004104/0.5694, allocations: 3 MB / 465.3 MB, free: 104.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001679/0.5695, allocations: 62.64 kB / 465.4 MB, free: 104.4 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001025/0.5706, allocations: 2.306 MB / 467.7 MB, free: 102.7 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004458/0.571, allocations: 0.8032 MB / 468.5 MB, free: 102.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007011/0.5717, allocations: 0.5128 MB / 469 MB, free: 101.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.275e-05/0.5718, allocations: 302.6 kB / 469.3 MB, free: 101.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00185/0.5736, allocations: 1.352 MB / 470.7 MB, free: 101 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002015/0.5757, allocations: 2.14 MB / 472.8 MB, free: 99.56 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003805/0.5795, allocations: 3.691 MB / 476.5 MB, free: 97.31 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.978e-06/0.5795, allocations: 3.781 kB / 476.5 MB, free: 97.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=367) (initialization): time 0.006231/0.5857, allocations: 4.664 MB / 481.2 MB, free: 93.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.5858, allocations: 12 kB / 481.2 MB, free: 93.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.273e-05/0.5858, allocations: 24 kB / 481.2 MB, free: 93.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001575/0.5874, allocations: 0.7631 MB / 482 MB, free: 92.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002042/0.5894, allocations: 0.6396 MB / 482.6 MB, free: 91.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008577/0.598, allocations: 13.39 MB / 496 MB, free: 77.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002382/0.6004, allocations: 160.9 kB / 496.1 MB, free: 77.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003138/0.6008, allocations: 116.1 kB / 496.3 MB, free: 77.39 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.002549/0.6033, allocations: 1.598 MB / 497.9 MB, free: 75.79 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007724/0.6041, allocations: 324.9 kB / 498.2 MB, free: 75.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006242/0.6103, allocations: 4.196 MB / 0.4906 GB, free: 71.19 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.6104, allocations: 27.98 kB / 0.4906 GB, free: 71.16 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-05/0.6104, allocations: 12 kB / 0.4906 GB, free: 71.15 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.874e-05/0.6104, allocations: 7.969 kB / 0.4906 GB, free: 71.14 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01433/0.6248, allocations: 9.14 MB / 0.4996 GB, free: 61.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-05/0.6248, allocations: 4.688 kB / 0.4996 GB, free: 61.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001565/0.6264, allocations: 375.9 kB / 0.4999 GB, free: 61.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002348/0.6288, allocations: 0.9315 MB / 0.5008 GB, free: 60.56 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002421/0.629, allocations: 63.97 kB / 0.5009 GB, free: 60.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01186/0.6409, allocations: 16.51 MB / 0.517 GB, free: 42.96 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.6409, allocations: 7.938 kB / 0.517 GB, free: 42.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008334/0.6493, allocations: 6.055 MB / 0.5229 GB, free: 36.76 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001678/0.651, allocations: 0.7 MB / 0.5236 GB, free: 36.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008978/0.6519, allocations: 59.98 kB / 0.5237 GB, free: 35.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001935/0.6538, allocations: 131.9 kB / 0.5238 GB, free: 35.85 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004419/0.6543, allocations: 193.6 kB / 0.524 GB, free: 35.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001705/0.6545, allocations: 71.97 kB / 0.5241 GB, free: 35.59 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003208/0.6577, allocations: 2.037 MB / 0.5261 GB, free: 33.56 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6577, allocations: 4 kB / 0.5261 GB, free: 33.55 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003604/0.6613, allocations: 0.9791 MB / 0.527 GB, free: 32.58 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.0005243/0.6618, allocations: 238.7 kB / 0.5272 GB, free: 32.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005718/0.6676, allocations: 4.567 MB / 0.5317 GB, free: 27.62 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.172e-06/0.6676, allocations: 5.938 kB / 0.5317 GB, free: 27.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003747/0.6713, allocations: 3.049 MB / 0.5347 GB, free: 24.44 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004757/0.6761, allocations: 0.8546 MB / 0.5355 GB, free: 23.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01568/0.6918, allocations: 12.18 MB / 0.5474 GB, free: 11.35 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003053/0.6949, allocations: 3.434 MB / 0.5508 GB, free: 7.887 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002501/0.6974, allocations: 0.762 MB / 0.5515 GB, free: 7.121 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006769/0.6981, allocations: 215.4 kB / 0.5517 GB, free: 6.91 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.6981, allocations: 0 / 0.5517 GB, free: 6.91 MB / 382.1 MB Notification: Performance of Templates: time 0.07779/0.7759, allocations: 49.42 MB / 0.6 GB, free: 5.418 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)